Closed Bug 112951 Opened 23 years ago Closed 23 years ago

Link properties and spelling dialogs - listbox (tree) height is not set correctly from "rows" or "min-height" style attribute settings

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.8

People

(Reporter: andreww, Assigned: cmanske)

References

Details

Attachments

(2 files, 1 obsolete file)

if you have many anchors in a page, the listbox text overflows the area 
allocated to it in the link properties dialog.
Attached image creen shot of problem
screen shot of problem
Thanks for filing this for me! I've been distracted and forgot to do it since we
talked.
cc'ing some folks who might know more about what's going on.
Target Milestone: --- → mozilla0.9.9
*** Bug 112895 has been marked as a duplicate of this bug. ***
*** Bug 103621 has been marked as a duplicate of this bug. ***
note to self - construct a simpler test case xul file.
Note: The XUL for the Link Properties dialog "listbox" is:
        <tree rows="4" class="list" id="NamedAnchorList"
onselect="SelectNamedAnchor()" style="min-height: 4em">
          <treecolgroup><treecol flex="1"/></treecolgroup>
The <treechildren> ... <treecell> members are added at runtime.
The basic issue is that neither the "rows" attribute nor the setting of
min-height by the style attribute seem to work. The actual height of the box 
around the entire tree seems to be about 2.5em (Modern skin), thus the last 2 
items in the list draw outside the enclosing box.
Note that the Spell Check dialog also has this problem (there, rows="8" and I 
also set min-height on the tree at 8em), this is a bugscape bug.
improving the summary
Summary: link properties dialog - text overflows on anchors → link properties dialog - listbox (tree) height is not set correctly from "rows" or "min-height" style attribute settings
this was also reproduced on Mac OS X build 2001121805.80.
Modified summary to add "Spelling" dialog, since that shows the same problem
Summary: link properties dialog - listbox (tree) height is not set correctly from "rows" or "min-height" style attribute settings → Link properties and spelling dialogs - listbox (tree) height is not set correctly from "rows" or "min-height" style attribute settings
*** Bug 111312 has been marked as a duplicate of this bug. ***
Setting dependancy. I belive this issue should disappear when  listbox is 
implemented.
Depends on: 110115
Bug 111312 for Mail Client is marked as duplicate of this one. This is just a
note not to forget to test Mail also when verify it from Browser.
Correcting dependency bug number :)
Depends on: 110155
No longer depends on: 110115
There are old styles in EditorDialogs.css for tree.list which set borders and
dimensions. If you remove them then the dialog displays perfectly.
No longer depends on: 110155
Thanks, Neil! While we should convert to the new "list" widget when available,
we have a fix now for this problem.
Assignee: andreww → cmanske
Target Milestone: mozilla0.9.9 → mozilla0.9.8
Note that in the spelling dialog, there's a problem with sizing the dialog
if we simply remove the CSS in editorDialog.css -- buttons on bottom are cut
off.
Changing number of rows to 6 fixes this (that is what we had originally
anyway).
Neil: review please?
Status: NEW → ASSIGNED
Keywords: patch, review
OS: Mac System 9.x → All
Whiteboard: FIX IN HAND, need r=, sr=
Attachment #63604 - Attachment is obsolete: true
Comment on attachment 63605 [details] [diff] [review]
Updated patch: Remove style in both lists in EdLinkProps.xul

looks good to me. Removing inline styles is always a plus!

r=andreww
Attachment #63605 - Flags: review+
Whiteboard: FIX IN HAND, need r=, sr= → FIX IN HAND, need sr=
Comment on attachment 63605 [details] [diff] [review]
Updated patch: Remove style in both lists in EdLinkProps.xul

sr=hewitt
Attachment #63605 - Flags: superreview+
checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Keywords: patch, review
Resolution: --- → FIXED
Whiteboard: FIX IN HAND, need sr=
Verified on trunk build 2002013003.

If anyone is still seeing this problem, please reopen this bug.
Status: RESOLVED → VERIFIED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: