! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
improve tooltip behaviour
Status:
RESOLVED: FIXED

Comments

Description Liv 2012-06-12 14:29:53 CEST
Created attachment 4499 
shot of outsized tooltip

(originally submitted off-list)

Outsized tooltip. Sometimes/often I need to add in the Note field text spanning on multiple lines. Attached is a toy example. In such cases the tooltip is completely overwhelmed and loses any practical usefulness. Can Orage do anything about this?

Juha's comment: 
"Yes, there are also other enhancements that needs to be done
 for tooltips. There needs to be a way to remove them totally.
 And yes, there needs to be a way to limit the size."

This bug is likely related to Bug 6597.
Comment 1 juha editbugs 2012-09-14 09:29:33 CEST
This is something that needs to be done, yes.
Comment 2 juha editbugs 2013-02-12 14:01:42 CET
This is now in 4.9.5.0 in git.

I fixed the size of note tooltip to max 50 char long lines and max 10 lines.
Not sure if those should be parameters. Adding them as undocumented parameters would be easy, butis it worth the extra code.
Comment 3 Liv 2013-11-28 17:46:41 CET
I now tested this fix but I must admit that the user experience is now worse than before. The trouble is that I often put in notes some text that I copy paste from an email (very often such text comes with no line breaks). And the 50char limit loses the utility of the tooltip. 

Try to make a test even with hte following text in it: "Outsized tooltip. Sometimes/often I need to add in the Note field text spanning on multiple lines. Attached is a toy example. In such cases the tooltip is completely overwhelmed and loses any practical usefulness. Can Orage do anything about this?" 

Now notice that you will only see "Outsized tooltip. Sometimes/often I need to add..." in the tooltip, which is not very helpful. 

Would there be a nicer way for Orage to deal with this?
Comment 4 juha editbugs 2013-11-29 08:15:27 CET
I do not really see what we could do with those. As they lack line breaks, Orage has no idea how to break it.
But showing huge tooltip was definitely bad idea.
Comment 5 Liv 2013-11-29 14:04:33 CET
(In reply to juha from comment #4)
> I do not really see what we could do with those. As they lack line breaks,
> Orage has no idea how to break it.
> 
Hmm, can the editor input box for the tooltips be configured to break all lines at, say, 100 chars? 

Even if not possible, I would suggest to make the tooltip a bit more generous at around 100chars (the current 50chars is a bit skimpy IMO).  I would also put the vertical default at 20 lines.


(In reply to juha from comment #2)
> I fixed the size of note tooltip to max 50 char long lines and max 10 lines.
> Not sure if those should be parameters. Adding them as undocumented
> parameters would be easy, butis it worth the extra code.
> 
Yes, I think it is worth it. The defaults may not work for most users.
Comment 6 Liv 2013-11-29 15:37:46 CET
(In reply to juha from comment #4)
> I do not really see what we could do with those. As they lack line breaks,
> Orage has no idea how to break it.
> But showing huge tooltip was definitely bad idea.
> 
Actually I'm confused. In 4.8.4 I do have a tooltip with no line breaks, but Orage somehow automatically breaks the lines at 60 chars (instead of ellipsizing, as in 4.9.x). Could this behaviour be reverted, and only the new vertical limit (10 lines) kept?
Comment 7 juha editbugs 2013-11-30 09:59:02 CET
4.8.4 treats text as oen long string and put it into the tooltip text box. System assigns a size for that and fits text into it. Fully automatic, Orage just puts the text in.

4.9 new method manually finds line endings (\n) and cuts each line to 50 chars and takes 10 of these.

So not easy to combine these.
Comment 8 Liv 2013-11-30 22:53:15 CET
(In reply to juha from comment #7)
> 4.8.4 treats text as oen long string and put it into the tooltip text box.
> System assigns a size for that and fits text into it. Fully automatic, Orage
> just puts the text in.
> 
Hmm, what about a variation of that? To simulate the 50char x 10lines, Orage could treat the text as one long string and pass to the tooltip only the first 500chars of the full Notes field. Then the system would automatically fit the text into the tooltip. This seems to me easy enough. What do you think?

Bug #9011

Reported by:
Liv
Reported on: 2012-06-12
Last modified on: 2013-11-30

People

CC List:
0 users

Version

Attachments

shot of outsized tooltip (168.84 KB, image/png)
2012-06-12 14:29 CEST , Liv
no flags

Additional information