Make container csspadding-proof

This commit is contained in:
DanyaPostfactum 2013-01-24 19:19:08 +10:00 • committed by nightwing
commit 7ae929aecf
2 changed files with 7 additions and 2 deletions

View file

@ -7,6 +7,8 @@
.ace_scroller { .ace_scroller {
position: absolute; position: absolute;
overflow: hidden; overflow: hidden;
top: 0;
bottom: 0;
} }
.ace_content { .ace_content {
@ -20,8 +22,10 @@
.ace_gutter { .ace_gutter {
position: absolute; position: absolute;
overflow : hidden; overflow : hidden;
height: 100%;
width: auto; width: auto;
top: 0;
bottom: 0;
left: 0;
cursor: default; cursor: default;
z-index: 4; z-index: 4;
} }
@ -66,6 +70,8 @@
overflow-x: hidden; overflow-x: hidden;
overflow-y: scroll; overflow-y: scroll;
right: 0; right: 0;
top: 0;
bottom: 0;
} }
.ace_scrollbar-inner { .ace_scrollbar-inner {

View file

@ -306,7 +306,6 @@ var VirtualRenderer = function(container, theme) {
if (height && (force || size.height != height)) { if (height && (force || size.height != height)) {
size.height = height; size.height = height;
this.scroller.style.height = height + "px";
size.scrollerHeight = this.scroller.clientHeight; size.scrollerHeight = this.scroller.clientHeight;
this.scrollBar.setHeight(size.scrollerHeight); this.scrollBar.setHeight(size.scrollerHeight);