[Cuis] [BUG][FIX] I can grab balloon text from the Taskbar

Casey Ransberger casey.obrien.r at gmail.com
Thu Dec 12 21:03:16 CST 2013


The new Taskbar seems to expose a bug with tooltips. The tooltip doesn't
behave like in other parts of the system: it appears under the hand (I
think because the hand is near the bottom of the screen at the time and the
help resists appearing below the screen,) and you can grab it and drag it.
After that you have to destroy it with the halo, as it doesn't go away
otherwise.

The expectation that seems most intuitive to me is this: the help morph
should be "locked" so the user can't grab it. Problem solved.

I wasn't completely sure where to fix this. It looks like the Taskbar is
just setting up balloon text normally, which suggested it's somewhere in
Cuis itself. After a bit of browsing I made a guess that seems to fix the
problem by sending #lockUnlockMorph inside of
HoverHelpMorph>>popUpForHand:. There were numerous other things I tried
elsewhere that sent the same message and fixed the problem, but this seemed
the most sensible solution once I'd locked onto it (to lock the morph
inside of its own initializer.)

It seems that the risk of regression elsewhere is low. Fix attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20131212/c98b0880/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1868-CuisCore-CaseyRansberger-2013Dec12-18h35m-cbr.1.cs.st
Type: application/octet-stream
Size: 645 bytes
Desc: not available
URL: <http://jvuletich.org/pipermail/cuis_jvuletich.org/attachments/20131212/c98b0880/attachment-0003.obj>


More information about the Cuis mailing list