pharo-graphics / Toplo

A widget framework on top of Bloc
MIT License
19 stars 9 forks source link

When I change the label text, the stamp no longer works #164

Closed LouisePla closed 5 months ago

LouisePla commented 5 months ago

When I change the label text, the stamp no longer works.

Example (code below) Before text update : image After text update the size isn't the size defined for the stamp : image

|space panel label button|
label := ToLabel text: 'Hello'.
label addStamp: #H2.
button := ToButton new.
button label: (ToLabel text: 'Update').
button whenClickedDo: [ label text: 'Hello'. label textChanged  ].

panel := ToPane horizontal.
panel layout cellSpacing: 10.
panel addChild: button.
panel addChild: label.

space := BlSpace new.
space toTheme: ToBeeTheme new.
space root addChild: panel.
space show
plantec commented 5 months ago

normally fixed by commit 823b783

LouisePla commented 5 months ago

It’s perfect it works :) thank you!