Skip to content

Commit b6efdb0

Browse files
authored
fix: missing transition when hiding areas in pixel mode (#456)
1 parent d4a8025 commit b6efdb0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/angular-split/src/lib/split/split.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ export class SplitComponent {
127127
let visitedVisibleAreas = 0
128128

129129
this._areas().forEach((area, index, areas) => {
130+
const unit = this.unit()
131+
const areaSize = area._internalSize()
132+
130133
// Add area size column
131134
if (!area.visible()) {
132-
columns.push('0fr')
135+
columns.push(unit === 'percent' || areaSize === '*' ? '0fr' : '0px')
133136
} else {
134-
const areaSize = area._internalSize()
135-
const unit = this.unit()
136-
137137
if (unit === 'pixel') {
138138
const columnValue = areaSize === '*' ? '1fr' : `${areaSize}px`
139139
columns.push(columnValue)

0 commit comments

Comments
 (0)