Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Dec 7, 2023
1 parent b598c13 commit 385b7fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/graphics/widgets/column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ class _Column extends Widget {
override get expandHeight(): boolean {
return this._children.some((child) => child.expandHeight);
}
get expandWidth(): boolean {
return this._children.some((child) => child.expandWidth);

override get expandWidth(): boolean {
return false;
}

guessWidthRange(): [number, FlexibleSize] {
Expand All @@ -43,6 +44,9 @@ class _Column extends Widget {
}

selectHeight(heightRange: [number, number]): number {
if (this.expandHeight) {
return heightRange[1];
}
return heightRange[0];
}

Expand Down

0 comments on commit 385b7fe

Please sign in to comment.