Title text longer than a certain amount will not show in Element Properties dialog box
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Invalid
|
Low
|
|||
firefox-3.0 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Ubuntu 8.04.1
Firefox 3.0.4
Problem:
If the text specified in the title attribute in an image tag is longer than a certain amount, it will go off the edge of the Element Properties dialog box. The box has to be resized horizontally.
Expected Result:
Resizing the Element Properties dialog box to give it more height should allow the Alt text to wrap and display in the space provided or the dialog box should open in the correct size to display the text.
Steps to recreate:
1. Visit a site with long text in the title attribute for an image. For example: http://
2. Right-click on the image.
3. Select Element Properties.
4. Resize dialog in different directions.
Changed in firefox-3.0: | |
importance: | Undecided → Low |
Changed in firefox-3.0: | |
status: | Confirmed → Triaged |
Changed in firefox: | |
importance: | Undecided → Unknown |
status: | New → Unknown |
Changed in firefox: | |
status: | Unknown → Confirmed |
Changed in firefox: | |
status: | Confirmed → Invalid |
Changed in firefox: | |
importance: | Unknown → Low |
Created an attachment (id=242315)
Proposed patch for metaData.xul
The multiline attribute of the textbox elements in metaData.xul is not set, and defaults to false. As a result, the contents of the textboxes are restricted to one line only.[1]
The attached patch fixes this by setting the multiline attribute to true. I've only set it on textboxes whose contents actually seem likely to contain long strings - e.g. the URL info, the alt and title attributes, table summaries, and a few others. With the multiline attributes set to true, the text wraps normally; if it's too long for the available vertical space within the dialog, it gets a vertical scroll bar so that the user can access the remainder of the text without resizing the dialog box.
One potential issue is that in long strings with no convenient place for a text break (that means long URLs), the textbox sprouts a horizontal scroll bar. This enables the user to scroll back and forth and view the text. However, the vertical space needed for the horizontal scroll bar is reserved even when the scrollbar itself does not need to appear. That introduces a line of horizontal whitespace which looks a bit odd when there's no scroll bar there. I'll attach a screenshot demonstrating this effect shortly. I'm not sure whether it's possible to suppress the reservation of scroll-bar-space. Suggestions?
[1] For further info on the XUL textbox element and the multiline attribute, see: http:// www.xulplanet. com/references/ elemref/ ref_textbox. html#attr_ multiline