2016-01-14 11:19 GMT+01:00 stepharo <stepharo@free.fr>:
For the Pharo Mooc we need to use large font and we end up with this visual glitch :(
I tried to dive into PluggableButtonMorph and I failed to found how to make sure it computes the bound correctly.
Any help is welcome.
I think this issue is related:
13376�� Wrong TextMorph extent for ButtonMorphs
The problem:
UITheme buttonLabelFor: creates a TextMorph with an extent
computed by TextMorph>>optimalExtent (in buttonLabelForText:),
which relies on its TextStyle (from the default font).
After that, the TextMorphs font is changed to the buttons
default font:
label := self buttonLabelForText: aButton label. ��������label enabled: aButton enabled. ��������label font: self buttonFont.
but the "label font:" does not recomputed the extent.
��I really think that in Brick we should really be picky on such problems.
Stef
��![]()