We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4a8025 commit b6efdb0Copy full SHA for b6efdb0
projects/angular-split/src/lib/split/split.component.ts
@@ -127,13 +127,13 @@ export class SplitComponent {
127
let visitedVisibleAreas = 0
128
129
this._areas().forEach((area, index, areas) => {
130
+ const unit = this.unit()
131
+ const areaSize = area._internalSize()
132
+
133
// Add area size column
134
if (!area.visible()) {
- columns.push('0fr')
135
+ columns.push(unit === 'percent' || areaSize === '*' ? '0fr' : '0px')
136
} else {
- const areaSize = area._internalSize()
- const unit = this.unit()
-
137
if (unit === 'pixel') {
138
const columnValue = areaSize === '*' ? '1fr' : `${areaSize}px`
139
columns.push(columnValue)
0 commit comments