@lightningjs/solid
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -730,7 +730,10 @@ import { createSignal, createEffect, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack } from 'solid-js'; | ||
updateLayout(child, dimensions) { | ||
if (this.display === 'flex' && this.hasChildren) { | ||
if (this.hasChildren) { | ||
log('Layout: ', this); | ||
calculateFlex(this); | ||
isFunc(this.onBeforeLayout) && this.onBeforeLayout(child, dimensions); | ||
if (this.display === 'flex') { | ||
calculateFlex(this); | ||
} | ||
isFunc(this.onLayout) && this.onLayout(child, dimensions); | ||
} | ||
isFunc(this.onLayout) && this.onLayout(child, dimensions); | ||
} | ||
@@ -737,0 +740,0 @@ _stateChanged() { |
@@ -323,7 +323,10 @@ /* | ||
updateLayout(child, dimensions) { | ||
if (this.display === 'flex' && this.hasChildren) { | ||
if (this.hasChildren) { | ||
log('Layout: ', this); | ||
calculateFlex(this); | ||
isFunc(this.onBeforeLayout) && this.onBeforeLayout(child, dimensions); | ||
if (this.display === 'flex') { | ||
calculateFlex(this); | ||
} | ||
isFunc(this.onLayout) && this.onLayout(child, dimensions); | ||
} | ||
isFunc(this.onLayout) && this.onLayout(child, dimensions); | ||
} | ||
@@ -330,0 +333,0 @@ _stateChanged() { |
@@ -22,2 +22,3 @@ import { type Dimensions, type INode, type INodeWritableProps, type ITextNodeWritableProps } from '@lightningjs/renderer'; | ||
onFail?: (target: INode, error: Error) => void; | ||
onBeforeLayout?: (child: ElementNode, dimensions: Dimensions) => void; | ||
onLayout?: (child: ElementNode, dimensions: Dimensions) => void; | ||
@@ -24,0 +25,0 @@ autofocus?: boolean; |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -413,8 +413,12 @@ /* | ||
updateLayout(child?: ElementNode, dimensions?: Dimensions) { | ||
if (this.display === 'flex' && this.hasChildren) { | ||
if (this.hasChildren) { | ||
log('Layout: ', this); | ||
calculateFlex(this); | ||
isFunc(this.onBeforeLayout) && this.onBeforeLayout(child, dimensions); | ||
if (this.display === 'flex') { | ||
calculateFlex(this); | ||
} | ||
isFunc(this.onLayout) && this.onLayout(child, dimensions); | ||
} | ||
isFunc(this.onLayout) && this.onLayout(child, dimensions); | ||
} | ||
@@ -421,0 +425,0 @@ |
@@ -53,2 +53,3 @@ /* | ||
onFail?: (target: INode, error: Error) => void; | ||
onBeforeLayout?: (child: ElementNode, dimensions: Dimensions) => void; | ||
onLayout?: (child: ElementNode, dimensions: Dimensions) => void; | ||
@@ -55,0 +56,0 @@ autofocus?: boolean; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
276729
4377