Skip to content

Commit dd29c70

Browse files
fix: fix render size bug that was caused by the frist frame being display none to get rid of the bad frame
1 parent 7f62062 commit dd29c70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

renderers/Context.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Context.prototype.draw = function draw() {
144144
Context.prototype._initDOMRenderer = function _initDOMRenderer() {
145145
this._domRendererRootEl = document.createElement('div');
146146
this._rootEl.appendChild(this._domRendererRootEl);
147-
this._domRendererRootEl.style.display = 'none';
147+
this._domRendererRootEl.style.visibility = 'hidden';
148148

149149
this._domRenderer = new DOMRenderer(
150150
this._domRendererRootEl,
@@ -233,7 +233,7 @@ Context.prototype.getRootSize = function getRootSize() {
233233
*/
234234
Context.prototype.checkInit = function checkInit () {
235235
if (this._initDOM) {
236-
this._domRendererRootEl.style.display = 'block';
236+
this._domRendererRootEl.style.visibility = 'visible';
237237
this._initDOM = false;
238238
}
239239
};

0 commit comments

Comments
 (0)