Skip to content

Commit 3f93a89

Browse files
committed
fix: dom-element checks for sizeMode onMount
1 parent 8492e25 commit 3f93a89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dom-renderables/DOMElement.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ function DOMElement(node, options) {
7575
this._id = node ? node.addComponent(this) : null;
7676
this._node = node;
7777

78-
this.onSizeModeChange.apply(this, node.getSizeMode());
79-
8078
this._callbacks = new CallbackStore();
8179

8280
this.setProperty('display', node.isShown() ? 'block' : 'none');
@@ -172,6 +170,7 @@ DOMElement.prototype.onMount = function onMount(node, id) {
172170
this._id = id;
173171
this._UIEvents = node.getUIEvents().slice(0);
174172
TransformSystem.makeBreakPointAt(node.getLocation());
173+
this.onSizeModeChange.apply(this, node.getSizeMode());
175174
this.draw();
176175
this.setAttribute('data-fa-path', node.getLocation());
177176
};

0 commit comments

Comments
 (0)