pharo-graphics / Toplo

A widget framework on top of Bloc
MIT License
17 stars 8 forks source link

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

Closed LouisePla closed 6 hours ago

LouisePla commented 6 days 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 days ago

normally fixed by commit 823b783

LouisePla commented 6 hours ago

It’s perfect it works :) thank you!