[Cuis-dev] Change in HoverHelpMorph
Hernan Wilkinson
hernan.wilkinson at gmail.com
Wed Nov 3 18:14:12 PDT 2021
Hi Hilaire,
the change set number 4922 changes the behavior of the HoverHelpMorph.
I use it in LiveTyping to show the types of variables, returns, etc.
Before that change set, the types were shown in a line, for example:
< Morph # InnerListMorph | HandMorph | WidgetMorph >
With the change, the width of the hover help is much smaller and it shows
something like this:
< Morph # InnerListMorph
| HandMorph
| WidgetMorph >
Why did you make that change? I do not understand why if the contents does
not includes a line feed you are limiting the width to 300... the strings
I'm using do not have a line feed. The code is bellow.
contents: aString
| width |
contents _ aString.
width _ (contents includes: Character lf)
ifTrue: [9999999] ifFalse: [300].
textComposition _ TextComposition new.
textComposition
setModel: (TextModel withText: contents asText);
extentForComposing: width at 9999999.
textComposition composeAll.
self morphExtent: textComposition usedExtent + 8
Thanks!
Hernan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20211103/5961f2a1/attachment.htm>
More information about the Cuis-dev
mailing list