@lightningjs/blits
Advanced tools
Comparing version 1.9.0 to 1.9.1
# Changelog | ||
## v1.9.1 | ||
_4 nov 2024_ | ||
- Added fix for omitting gap-attribute in Layout component | ||
## v1.9.0 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "@lightningjs/blits", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"description": "Blits: The Lightning 3 App Development Framework", | ||
@@ -5,0 +5,0 @@ "bin": "bin/index.js", |
@@ -34,2 +34,3 @@ /* | ||
let otherDimension = 0 | ||
const gap = config.gap || 0 | ||
for (let i = 0; i < childrenLength; i++) { | ||
@@ -40,3 +41,3 @@ const node = children[i] | ||
if (wh === 'width') { | ||
offset += node.width + (node.width !== ('text' in node ? 1 : 0) ? config.gap : 0) | ||
offset += node.width + (node.width !== ('text' in node ? 1 : 0) ? gap : 0) | ||
} else if (wh === 'height') { | ||
@@ -46,6 +47,6 @@ offset += | ||
? node.width > 1 | ||
? node.height + config.gap | ||
? node.height + gap | ||
: 0 | ||
: node.height !== 0 | ||
? node.height + config.gap | ||
? node.height + gap | ||
: 0 | ||
@@ -56,3 +57,3 @@ } | ||
// adjust the size of the layout container | ||
this[wh] = offset - (config.gap || 0) | ||
this[wh] = offset - gap | ||
this[opositeWh] = otherDimension | ||
@@ -59,0 +60,0 @@ } |
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
592354
12547