<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks Joel.<br>
<br>
This is now at GitHub.<br>
<br>
Cheers,<br>
<br>
On 5/15/2025 12:47 PM, Joel Camera via Cuis-dev wrote:
<blockquote
cite="mid:CAKc5+ie5CQXpx4V-00aj8Ee_B+=s_8Nj2VnRbmZZSXYcqOXoUw@mail.gmail.com"
type="cite">
<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 moz-do-not-send="true" href="https://10pines.com/"
style="font-family: Roboto,Helvetica,Arial,sans-serif;
font-size: medium;" target="_blank"><img
moz-do-not-send="true"
src="https://10pines.github.io/email-signature/10pines-firma@2x.png"
style="margin-bottom: 0.5em;" width="108"></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>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>