Skip to content

Commit

Permalink
Change default (not-yet-registered) Panel flex-grow style from 0 to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
bvaughn committed Nov 27, 2023
1 parent 16784b4 commit 9e9dd82
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ export function computePanelFlexBoxStyle({

let flexGrow;
if (panelData.length === 1) {
flexGrow = "100";
flexGrow = "1";
} else if (size == null) {
flexGrow = "0";
// Initial render (before panels have registered themselves)
flexGrow = "1";
} else {
flexGrow = size.toPrecision(precision);
}
Expand Down

0 comments on commit 9e9dd82

Please sign in to comment.