@lightningtv/core
Advanced tools
Comparing version 2.4.7 to 2.4.8
@@ -53,2 +53,3 @@ import { createShader } from './lightningInit.js'; | ||
flexBoundary?: 'contain' | 'fixed'; | ||
flexCrossBoundary?: 'fixed'; | ||
flexDirection?: 'row' | 'column'; | ||
@@ -55,0 +56,0 @@ gap?: number; |
@@ -68,9 +68,6 @@ import { isTextNode } from './utils.js'; | ||
: (c) => c; | ||
if (isRow && node._calcHeight) { | ||
if (isRow && node._calcHeight && !node.flexCrossBoundary) { | ||
// Assuming all the children have the same height | ||
node.height = children[0]?.height || node.height; | ||
} | ||
else if (node._calcWidth) { | ||
node.width = children[0]?.width || node.width; | ||
} | ||
if (justify === 'flexStart') { | ||
@@ -77,0 +74,0 @@ let start = node.padding || 0; |
{ | ||
"name": "@lightningtv/core", | ||
"version": "2.4.7", | ||
"version": "2.4.8", | ||
"description": "Lightning TV Core for Universal Renderers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -251,2 +251,3 @@ import { renderer, createShader } from './lightningInit.js'; | ||
flexBoundary?: 'contain' | 'fixed'; | ||
flexCrossBoundary?: 'fixed'; // default is contain | ||
flexDirection?: 'row' | 'column'; | ||
@@ -253,0 +254,0 @@ gap?: number; |
@@ -88,7 +88,5 @@ import { type ElementNode } from './elementNode.js'; | ||
if (isRow && node._calcHeight) { | ||
if (isRow && node._calcHeight && !node.flexCrossBoundary) { | ||
// Assuming all the children have the same height | ||
node.height = children[0]?.height || node.height; | ||
} else if (node._calcWidth) { | ||
node.width = children[0]?.width || node.width; | ||
} | ||
@@ -95,0 +93,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
226518
3487