do not set editor size to 0 when it is hidden
This commit is contained in:
parent
19c3031abf
commit
be642d2a6f
1 changed files with 4 additions and 3 deletions
|
|
@ -300,10 +300,10 @@ var VirtualRenderer = function(container, theme) {
|
|||
this.resizing++;
|
||||
else
|
||||
this.resizing = force ? 1 : 0;
|
||||
|
||||
if (!height)
|
||||
height = dom.getInnerHeight(this.container);
|
||||
if (force || size.height != height) {
|
||||
|
||||
if (height && (force || size.height != height)) {
|
||||
size.height = height;
|
||||
|
||||
this.scroller.style.height = height + "px";
|
||||
|
|
@ -318,7 +318,8 @@ var VirtualRenderer = function(container, theme) {
|
|||
|
||||
if (!width)
|
||||
width = dom.getInnerWidth(this.container);
|
||||
if (force || this.resizing > 1 || size.width != width) {
|
||||
|
||||
if (width && (force || this.resizing > 1 || size.width != width)) {
|
||||
size.width = width;
|
||||
|
||||
var gutterWidth = this.showGutter ? this.$gutter.offsetWidth : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue