<div dir="ltr"><div>Hi Folks!</div><div>Here I bring a bugfix of PluggableButtonMorph. </div><div>The bug is that when changing the label it loses all its padding.</div><div>How to trigger it: create a LayoutMorph, create a button, add the button to the LayoutMorph and then change its label.</div><div><font face="monospace">layoutMorph := LayoutMorph newColumn.<br>button := PluggableButtonMorph model: nil action: nil label: 'hello'.<br>button openInWorld.<br>layoutMorph addMorph: button.<br>layoutMorph openInWorld.<br>button label: 'bye'.</font></div><div><br></div><div>If something new happens to the LayoutMorph (like adding another morph), the button will recover its padding.</div><div><br></div><div>The problem is that when changing the label, it sets the instance variable extent without telling its parents that it was changed. Fortunately, the setter of the extent <font face="monospace">morphExtent:</font> does that and using it solves the problem.</div><div><br></div><div>Have a nice day!</div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><br></div><a href="https://10pines.com/" style="font-family:Roboto,Helvetica,Arial,sans-serif;font-size:medium" target="_blank"><img width="108" src="https://10pines.github.io/email-signature/10pines-firma@2x.png" style="margin-bottom:0.5em"></a><h1 style="margin:0px;font-size:14px"><font color="#999999">Joel Cámera</font></h1><h2 style="color:rgb(100,100,100);margin:0px 0px 1em;font-size:14px">Agile Software Development</h2><h1 style="margin:0px;font-size:14px"><font style="font-weight:normal" color="#666666"><p style="margin:0px;font-size:12px">Alem 896, Floor 6, Buenos Aires, Argentina</p><p style="margin:0px;font-size:12px">+54 9 011 6091 3125</p></font></h1></div></div></div></div>