Skip to content

Conversation

@koendehondt
Copy link
Contributor

The paginator was not displayed correctly due to a mistake in PR #1813, which was intended to fix #1735. In SpMorphicBoxAdapter>>#verifyBoxExtentOf:withChild:, the conditions to determine whether a Morph has a fixed width or fixed height were not correct.

This PR fixes the mistake. It sets the min width and max width (or min height and max height if the SpBoxLayout direction is vertical) when the SpBoxConstraints specify a width (or height). The same value for the min width and the max width (or the min height and the max height) indicates that a Morph has fixed size, which can be taken into account when laying out the submorphs of a box layout.

@estebanlm reviewed the initial suggestion for a solution. This PR takes his review comments into account. All changes are made in SpMorphicBoxAdapter.

…conditions to determine whether a Morph has a fixed width or height.
@Ducasse
Copy link
Contributor

Ducasse commented Nov 21, 2025

@estebanlm can I integrate this PR because the navigation is too cool to have

@estebanlm estebanlm merged commit 7792925 into pharo-spec:Pharo14 Nov 21, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixed-width SpBoxLayout grows when adding children

3 participants