[Cuis-dev] My first question with LabeledInput morph
Juan Vuletich
juan at cuis.st
Wed Feb 21 10:53:50 PST 2024
Hi Maximiliano,
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.
It is a bug in the base image. I just posted the fix to GitHub.
Thanks for reporting!
Cheers,
On 2/20/2024 1:07 AM, Maximiliano Joel Cabezon Alvarez via Cuis-dev wrote:
> Hi. My name is Maximiliano Cabezon Alvarez and i m working with Hernan
> in these refactorings for my thesis:
> https://github.com/maxi1985798/cuis-move-instance-variable-refactoring
> https://github.com/maxi1985798/move-method-refactoring
> https://github.com/maxi1985798/cuis-extract-class-refactoring
>
> Pls install in that order
>
> I have a problem with*LabeledInput *morph. When you delete the text
> with *backspace*, the text format will be lost.
> Here is the code to test in workspace:
>
> | text model labeledInput |
> text := Text fromString: 'hello people'.
> text color: Color green.
> model := TextModel withText: text.
> labeledInput := LabeledInput withLabel: 'aaaaa' withWidth: 300
> withModel: model.
> labeledInput openInHand.
>
> If you delete 'hello people' with *backspace*, the format is lost.
> Should I use a different morph for input?
> Any help will be appreciated.
>
> Thanks in advance.
> Maxi
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240221/329c861c/attachment.htm>
More information about the Cuis-dev
mailing list