I have a proposal how to maybe get something going with bugs 45375 and related bugs. Bug 45375 is one of the oldest bugs, it is ugly and solving it would benefit many web pages and intranet solutions that loose long title tips for help and explanation.
Unfortunately, no core developer seems to be interested and those who are interested are simply too overwhelmed by the involved code to come up with something useful. Discussing the details of the code and learning more about it cannot be done in bugzilla however.
My suggestion would be that all those who are interested to help, learn about the code and discuss possible solutions gather here or in one of the mozilla newgroups to be able to exchange lengthy discussions about the code and help each other understand how it could work. Maybe some core developer or somebody who has more detailled knowledge will even step in at some point and help. In any way, the thread could not only help those that are interested now but also help as a starting point for those who join the SIG later.
What do you think?
Special interest group for tooltip-related bugs?
- johann_p
- Posts: 8479
- Joined: November 5th, 2002, 3:05 am
- Location: Sheffield, UK
-
- Posts: 2
- Joined: December 6th, 2003, 5:37 am
- Location: Vienna, Austria
- Contact:
-
- Posts: 0
- Joined: December 31st, 1969, 5:00 pm
What's really blocking this (multi-line tooltips) is a technical limitation. The tooltips use a single XUL 'label' element, which is designed to only display text on one line and optionally crop the text with an ellipsis.
The Bookmarks Toolbar tooltips contain two XUL 'label' elements, one for the title and one for the URL, but they also individually have the single-line limit.
So. Long story short -- the tooltips, in their current state, can't support wrapping or line breaks. Someone probably needs to define a new tooltip binding just for the 'tabbrowser' element, using a 'description' element instead of a 'label' element.
The Bookmarks Toolbar tooltips contain two XUL 'label' elements, one for the title and one for the URL, but they also individually have the single-line limit.
So. Long story short -- the tooltips, in their current state, can't support wrapping or line breaks. Someone probably needs to define a new tooltip binding just for the 'tabbrowser' element, using a 'description' element instead of a 'label' element.
- johann_p
- Posts: 8479
- Joined: November 5th, 2002, 3:05 am
- Location: Sheffield, UK
momokatte wrote:What's really blocking this (multi-line tooltips) is a technical limitation. The tooltips use a single XUL 'label' element, which is designed to only display text on one line and optionally crop the text with an ellipsis.
The Bookmarks Toolbar tooltips contain two XUL 'label' elements, one for the title and one for the URL, but they also individually have the single-line limit.
So. Long story short -- the tooltips, in their current state, can't support wrapping or line breaks. Someone probably needs to define a new tooltip binding just for the 'tabbrowser' element, using a 'description' element instead of a 'label' element.
The description element will only show a single line either, if the value is set via the value attribute. So in order to try this, one would need to attach the text as if the element would look like this:
Code: Select all
<description>the text ...</description>
Another question - how/where is the width of the label element currently calculated?
BTW - why define the tooltip binding just for the tabbrowser element? Wouldn't this be potentially useful in other contexts too where cropped tooltips are a problem now (e.g. showing long filenames, headers, subjects ...)?
-
- Posts: 1293
- Joined: December 22nd, 2002, 5:32 am
- Location: Dundee, Scotland
-
- Posts: 2
- Joined: December 6th, 2003, 5:37 am
- Location: Vienna, Austria
- Contact:
-
- Posts: 4
- Joined: March 28th, 2003, 11:18 am
- Location: Novi, MI
Patch works when added to 20031201 build of Firebird
I patched popup.xml inside chrome/toolkit.jar in the Firebird installation directory. In the limited number of cases I tried, it did indeed wrap the text.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031201 Firebird/0.7+
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031201 Firebird/0.7+