minitel-standalone
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -28,3 +28,4 @@ import { MinitelObject } from '../abstract/minitelobject.js'; | ||
const flexGrowTotal = this.children.reduce((p, c) => p + +(c.attributes.flexGrow || 0), 0); | ||
const remainingSpace = attributes.width != null ? attributes.width - cumulatedWidth : null; | ||
const gapIfStatic = typeof attributes.gap === 'number' ? attributes.gap : 0; | ||
const remainingSpace = attributes.width != null ? attributes.width - cumulatedWidth - gapIfStatic * (this.children.length - 1) : null; | ||
const unitOfFlexGrowSpace = remainingSpace != null ? remainingSpace / flexGrowTotal : null; | ||
@@ -31,0 +32,0 @@ let usedRemainingSpace = 0; |
{ | ||
"name": "minitel-standalone", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "A standalone package for minitel components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -41,3 +41,5 @@ import { MinitelObject } from '../abstract/minitelobject.js'; | ||
const remainingSpace = attributes.width != null ? attributes.width - cumulatedWidth : null; | ||
const gapIfStatic = typeof attributes.gap === 'number' ? attributes.gap : 0; | ||
const remainingSpace = attributes.width != null ? attributes.width - cumulatedWidth - gapIfStatic * (this.children.length - 1) : null; | ||
@@ -44,0 +46,0 @@ const unitOfFlexGrowSpace = remainingSpace != null ? remainingSpace / flexGrowTotal : null; |
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
259836
5489