fix diagonal resizing
This commit is contained in:
parent
4ed6afc829
commit
21bd4a15fa
1 changed files with 4 additions and 7 deletions
|
|
@ -369,7 +369,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
};
|
||||
if (height && (force || size.height != height)) {
|
||||
size.height = height;
|
||||
changes = this.CHANGE_SIZE;
|
||||
changes |= this.CHANGE_SIZE;
|
||||
|
||||
size.scrollerHeight = size.height;
|
||||
if (this.$horizScroll)
|
||||
|
|
@ -378,14 +378,11 @@ var VirtualRenderer = function(container, theme) {
|
|||
// this.scrollBarV.setHeight(size.scrollerHeight);
|
||||
this.scrollBarV.element.style.bottom = this.scrollBarH.getHeight() + "px";
|
||||
|
||||
if (this.session) {
|
||||
//this.session.setScrollTop(this.getScrollTop());
|
||||
changes = changes | this.CHANGE_SCROLL;
|
||||
}
|
||||
changes = changes | this.CHANGE_SCROLL;
|
||||
}
|
||||
|
||||
if (width && (force || size.width != width)) {
|
||||
changes = this.CHANGE_SIZE;
|
||||
changes |= this.CHANGE_SIZE;
|
||||
size.width = width;
|
||||
|
||||
if (gutterWidth == null)
|
||||
|
|
@ -404,7 +401,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
// this.scrollBarH.element.style.setWidth(size.scrollerWidth);
|
||||
|
||||
if (this.session && this.session.getUseWrapMode() && this.adjustWrapLimit() || force)
|
||||
changes = changes | this.CHANGE_FULL;
|
||||
changes |= this.CHANGE_FULL;
|
||||
}
|
||||
|
||||
size.$dirty = !width || !height;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue