Skip to content

Commit

Permalink
Set the minWidth and the minHeight of the endPanel created for a box …
Browse files Browse the repository at this point in the history
…layout, so that an empty endPanel does not render the default number of pixels specified in Morph>>#minWidth and Morph>>#minHeight.
  • Loading branch information
koendehondt committed Jan 21, 2024
1 parent 35bb072 commit 2fa9ae1
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 2fa9ae1

Please sign in to comment.