gutter fix
This commit is contained in:
parent
9c67add1d5
commit
89dadab29d
2 changed files with 11 additions and 2 deletions
|
|
@ -6,6 +6,8 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace;
|
font-family: 'Monaco', 'Menlo', 'Droid Sans Mono', 'Courier New', monospace;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ace_scroller {
|
.ace_scroller {
|
||||||
|
|
|
||||||
|
|
@ -819,8 +819,15 @@ var VirtualRenderer = function(container, theme) {
|
||||||
|
|
||||||
// force re-measure of the gutter width
|
// force re-measure of the gutter width
|
||||||
if (_self.$size) {
|
if (_self.$size) {
|
||||||
_self.$size.width = 0;
|
var checkGutterInitialized = function () {
|
||||||
_self.onResize();
|
// if offset width larger than 0 than force resize
|
||||||
|
if (_self.$gutter.offsetWidth > 0) {
|
||||||
|
_self.onResize(true);
|
||||||
|
} else {
|
||||||
|
setTimeout(checkGutterInitialized, 50); // try again in 50 ms.
|
||||||
|
}
|
||||||
|
};
|
||||||
|
checkGutterInitialized();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue