Skip to content

Commit

Permalink
Merge pull request #1507 from koendehondt/bugfix/boxlayout-endpanel-m…
Browse files Browse the repository at this point in the history
…inwidth-minheight

Set the minWidth and the minHeight of the endPanel created for a box layout
  • Loading branch information
estebanlm authored Jan 26, 2024
2 parents c540bce + 2fa9ae1 commit 9ca8b93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ SpMorphicBoxAdapter >> newHorizontal [
listDirection: #leftToRight;
hResizing: #shrinkWrap;
width: 0;
minWidth: 0; "Otherwise an empty endPanel has a width of 2 pixels due to Morph>>#minWidth."
yourself);
yourself
]
Expand All @@ -232,6 +233,7 @@ SpMorphicBoxAdapter >> newVertical [
listDirection: #topToBottom;
vResizing: #shrinkWrap;
height: 0;
minHeight: 0; "Otherwise an empty endPanel has a height of 2 pixels due to Morph>>#minHeight."
yourself);
yourself
]
Expand Down

0 comments on commit 9ca8b93

Please sign in to comment.