Fix Bug 37199

This commit is contained in:
Julia Radzhabova 2018-03-12 15:34:11 +03:00
parent bc30e303da
commit db112968a5
2 changed files with 5 additions and 4 deletions

View file

@ -370,7 +370,7 @@ define([
setResizeValue: function (index, value) {
if (index >= this.splitters.length)
return;
return false;
var panel = null, next = null, oldValue = 0,
resize = this.splitters[index].resizer,
@ -405,6 +405,7 @@ define([
if (resize.value != value) {
this.doLayout();
}
return (Math.abs(oldValue-value)>0.99);
}
});

View file

@ -389,6 +389,7 @@ define([
if (event && 0 == textBox.val().length) {
this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, height - this.addMessageBoxHeight));
this.textBoxAutoSizeLocked = undefined;
this.updateScrolls();
return;
}
@ -409,9 +410,8 @@ define([
height = this.panelBox.height();
this.layout.setResizeValue(1,
Math.max(this.addMessageBoxHeight,
Math.min(height - contentHeight - textBoxMinHeightIndent, height - this.addMessageBoxHeight)));
if (this.layout.setResizeValue(1, Math.max(this.addMessageBoxHeight, Math.min(height - contentHeight - textBoxMinHeightIndent, height - this.addMessageBoxHeight))))
this.updateScrolls(); // update when resize position changed
},
updateScrolls: function () {