Open akevalion opened 1 year ago
Hello there,
This issue involves SpPanedLayout, SpNumberInputFieldPresenter and ProportionalLayout
run this code
presenter := SpPresenter new. presenter layout: (SpPanedLayout newLeftToRight positionOfSlider: 280; add: (SpBoxLayout newVertical add: 'Label' expand: false; add: (SpBoxLayout newVertical add: SpNumberInputFieldPresenter new expand: false; yourself); yourself); add: SpButtonPresenter new; yourself). presenter open
you will get this window
change the slider position to the right
then move it to the left
can you see the error? yes we loose the arrows of SpNumberInputFieldPresenter.
change the method ProportionalLayout >> #minExtentOf:in:, return 0@0 or remove the method then try again.
ProportionalLayout >> #minExtentOf:in:
move it to the right
move it to the left
As you can see now the arrows are in the correct position. Although I do know the impact of this change, probably we will need a better solution.
Hello there,
This issue involves SpPanedLayout, SpNumberInputFieldPresenter and ProportionalLayout
Steps
run this code
you will get this window
change the slider position to the right
then move it to the left
can you see the error? yes we loose the arrows of SpNumberInputFieldPresenter.
To fix this
change the method
ProportionalLayout >> #minExtentOf:in:
, return 0@0 or remove the method then try again.move it to the right
move it to the left
As you can see now the arrows are in the correct position. Although I do know the impact of this change, probably we will need a better solution.