<div dir="ltr">Hi Matias,<div> thanks for the fix, but remember that we need the change set with the new code if not, we do not know exactly what to change (we can guess) and no history of changes is recorded.</div><div><br></div><div> Please, send the change set as it says under "Contributing to Cuis" here: <a href="https://cuis.st/community">https://cuis.st/community</a></div><div><br></div><div>Thanks!</div><div>Hernan.</div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Apr 28, 2025 at 4:49 PM Matías Lang via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey folks,<br>
<br>
I've noticed an annoying bug that occurs when the user edits a<br>
definition in the class browser, with a resulting source code<br>
referencing an invalid class name. If the user decides to define a new<br>
class, the widget asking the user for the code of the new class is<br>
smaller than it should be (see the attached screenshot demonstrating the<br>
problem). This dialog can't be easily resized, so working with it can<br>
become cumbersome.<br>
<br>
This dialog width problem can be replicated by running the following<br>
code:<br>
<br>
text := 'Object subclass: #SomeClass<br>
                instanceVariableNames:<br>
                classVariableNames:<br>
                poolDictionaries:<br>
                category: Testing'.<br>
<br>
StringRequestMorph request: 'title' initialAnswer: text do: []<br>
<br>
The problem seems to be caused by the following line:<br>
<br>
extraWidth := (6 * FontFamily defaultPointSize). "Some extra room for <br>
edition plus accept/cancel buttons." ].<br>
<br>
in the StringRequestMorph -> setQuery:initialAnswer: method.<br>
<br>
Changing the hardcoded constant from 6 to 10, which is the same value<br>
used for single line strings, seems to fix this issue.<br>
<br>
Hope this can be fixed, either by changing the constant as I did, or by<br>
using some other technique.<br>
<br>
Greetings,<br>
Matías-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><div><br clear="all"></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:small"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal"><span style="font-weight:bold">Hernán Wilkinson</span><br>Agile Software Development, Teaching & Coaching</span></font></span></span></strong></span></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Phone: +54-011</span></font></span></span></strong></span><font face="tahoma, sans-serif" size="2">-4893-2057</font></div><div style="font-size:12.8px"><strong style="font-family:tahoma,sans-serif;font-size:xx-small"><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">Twitter: @HernanWilkinson</span></font></span></span></strong></div><div style="font-size:12.8px"><span style="font-family:tahoma,sans-serif;font-size:xx-small;border-collapse:collapse"><strong><span style="font-size:8pt"><span style="font-size:small"><font size="2"><span style="font-weight:normal">site: <a href="http://www.10pines.com/" style="color:rgb(17,65,112)" target="_blank">http://www.10Pines.com</a></span></font></span></span></strong></span></div><div style="font-size:12.8px"><font face="tahoma, sans-serif"><span style="border-collapse:collapse">Address: Alem 896</span></font>, Floor 6, Buenos Aires, Argentina</div></div></div></div></div></div></div></div>