@lightningjs/solid
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -743,2 +743,14 @@ import { createSignal, createEffect, mergeProps as mergeProps$1, createRoot, createRenderEffect, createMemo, createComponent as createComponent$1, untrack } from 'solid-js'; | ||
}; | ||
if (props.contain) { | ||
if (!props.width) { | ||
props.width = (parent.width || 0) - props.x - (props.marginRight || 0); | ||
node._width = props.width; | ||
node._autosized = true; | ||
} | ||
if (!props.height && props.contain === 'both') { | ||
props.height = (parent.height || 0) - props.y - (props.marginBottom || 0); | ||
node._height = props.height; | ||
node._autosized = true; | ||
} | ||
} | ||
log('Rendering: ', this, props); | ||
@@ -745,0 +757,0 @@ node.lng = renderer.createTextNode(props); |
@@ -388,2 +388,16 @@ /* | ||
}; | ||
if (props.contain) { | ||
if (!props.width) { | ||
props.width = | ||
(parent.width || 0) - props.x - (props.marginRight || 0); | ||
node._width = props.width; | ||
node._autosized = true; | ||
} | ||
if (!props.height && props.contain === 'both') { | ||
props.height = | ||
(parent.height || 0) - props.y - (props.marginBottom || 0); | ||
node._height = props.height; | ||
node._autosized = true; | ||
} | ||
} | ||
log('Rendering: ', this, props); | ||
@@ -390,0 +404,0 @@ node.lng = renderer.createTextNode(props); |
{ | ||
"name": "@lightningjs/solid", | ||
"version": "0.10.2", | ||
"version": "0.10.3", | ||
"description": "Lightning renderer for solid universal", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -508,2 +508,19 @@ /* | ||
}; | ||
if (props.contain) { | ||
if (!props.width) { | ||
props.width = | ||
(parent.width || 0) - props.x - (props.marginRight || 0); | ||
node._width = props.width; | ||
node._autosized = true; | ||
} | ||
if (!props.height && props.contain === 'both') { | ||
props.height = | ||
(parent.height || 0) - props.y - (props.marginBottom || 0); | ||
node._height = props.height; | ||
node._autosized = true; | ||
} | ||
} | ||
log('Rendering: ', this, props); | ||
@@ -510,0 +527,0 @@ node.lng = renderer.createTextNode(props); |
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
287740
4508