<!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">
Hi Maximiliano,<br>
<br>
A bit of testing confirmed that the same behavior happens on a
regular TextEditor window: Edit some text, set some font size or
style, remove it with backspace, type something new -> the style
is lost.<br>
<br>
It is a bug in the base image. I just posted the fix to GitHub.<br>
<br>
Thanks for reporting!<br>
<br>
Cheers,<br>
<br>
On 2/20/2024 1:07 AM, Maximiliano Joel Cabezon Alvarez via Cuis-dev
wrote:
<blockquote
cite="mid:CADFUJhr6pvbhZWvkoTzdrOwSUP-yNE=ko=7JfF3TvkiantZpkw@mail.gmail.com"
type="cite">
<div dir="ltr">Hi. My name is Maximiliano Cabezon Alvarez and i m
working with Hernan in these refactorings for my thesis:<br>
<a moz-do-not-send="true"
href="https://github.com/maxi1985798/cuis-move-instance-variable-refactoring">https://github.com/maxi1985798/cuis-move-instance-variable-refactoring</a><br>
<a moz-do-not-send="true"
href="https://github.com/maxi1985798/move-method-refactoring">https://github.com/maxi1985798/move-method-refactoring</a><br>
<a moz-do-not-send="true"
href="https://github.com/maxi1985798/cuis-extract-class-refactoring">https://github.com/maxi1985798/cuis-extract-class-refactoring</a><br>
<br>
Pls install in that order<br>
<br>
I have a problem with<span class="gmail_default"
style="font-size: large;"></span> <b><span
class="gmail_default" style="font-size: large;"></span>LabeledInput
</b>morph<span class="gmail_default" style="font-size: large;">. </span><span
class="gmail_default" style="font-size: large;"></span>When
you delete the text with <b>backspace</b><span
class="gmail_default" style=""><font size="4">, </font>the
text format will be lost.</span>
<div><span class="gmail_default" style="">Here is the code to
test in workspace:<br>
<br>
</span><span class="gmail_default" style=""></span><font
face="monospace">| text model labeledInput |<br>
text := Text fromString: <span class="gmail_default"
style="font-size: large;"></span>'hello people'.<br>
text color: Color green.<br>
model := TextModel withText: text.<br>
labeledInput := LabeledInput withLabel: 'aaaaa' withWidth:
300 withModel: model.<br>
labeledInput openInHand.</font>
<div class="gmail_default" style="font-size: large;"><br>
</div>
If you delete 'hello people' with <b>backspace</b>, the
format is lost<span style="font-size: large;">. </span>Should
I use a different morph for input?<br>
<div class="gmail_default" style="">Any help will be
appreciated.<br>
<br>
Thanks in advance.<br>
Maxi</div>
<br>
</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>