From 2fa9ae18223347b615781692c596537b6d859657 Mon Sep 17 00:00:00 2001 From: Koen De Hondt Date: Sun, 21 Jan 2024 12:29:14 +0100 Subject: [PATCH] Set the minWidth and the minHeight of the endPanel created for a box layout, so that an empty endPanel does not render the default number of pixels specified in Morph>>#minWidth and Morph>>#minHeight. --- src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st b/src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st index 5e389ca2..4648233d 100644 --- a/src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st +++ b/src/Spec2-Adapters-Morphic/SpMorphicBoxAdapter.class.st @@ -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 ] @@ -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 ]