@lightningtv/core
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -445,7 +445,2 @@ import { renderer, createShader } from './lightningInit.js'; | ||
} | ||
if (this.requiresLayout() && !this._containsTextNodes) { | ||
// Since the element doesn't contain any text nodes, it's safe to do layout early since we know dimensions. | ||
// This has the added benefit of laying out without animating the nodes | ||
this.updateLayout(); | ||
} | ||
if (topNode && parent.requiresLayout()) { | ||
@@ -542,2 +537,7 @@ parent.queueLayout(); | ||
node.rendered = true; | ||
if (this.requiresLayout() && !this._containsTextNodes) { | ||
// Since the element doesn't contain any text nodes, it's safe to do layout early since we know dimensions. | ||
// This has the added benefit of laying out without animating the nodes | ||
this.updateLayout(); | ||
} | ||
if (node.autosize && parent.requiresLayout()) { | ||
@@ -544,0 +544,0 @@ node._layoutOnLoad(); |
{ | ||
"name": "@lightningtv/core", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -631,8 +631,2 @@ import { renderer, createShader } from './lightningInit.js'; | ||
if (this.requiresLayout() && !this._containsTextNodes) { | ||
// Since the element doesn't contain any text nodes, it's safe to do layout early since we know dimensions. | ||
// This has the added benefit of laying out without animating the nodes | ||
this.updateLayout(); | ||
} | ||
if (topNode && parent.requiresLayout()) { | ||
@@ -744,2 +738,8 @@ parent.queueLayout(); | ||
if (this.requiresLayout() && !this._containsTextNodes) { | ||
// Since the element doesn't contain any text nodes, it's safe to do layout early since we know dimensions. | ||
// This has the added benefit of laying out without animating the nodes | ||
this.updateLayout(); | ||
} | ||
if (node.autosize && parent.requiresLayout()) { | ||
@@ -746,0 +746,0 @@ node._layoutOnLoad(); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet