Fix handling of the width and hight changes in the Stage class

Just resize the DOM elements, don't replace the current contents
with a new (empty) one.
This commit is contained in:
VladimirTechMan 2019-01-19 23:40:43 +03:00
parent 76299cd07a
commit eb73c96a3a

View File

@ -112,7 +112,7 @@ export class Stage extends Container {
this._buildDOM();
this._bindContentEvents();
stages.push(this);
this.on('widthChange heightChange', this._buildDOM);
this.on('widthChange heightChange', this._resizeDOM);
}
_validateAdd(child) {