Closed Bug 349181 Opened 18 years ago Closed 18 years ago

[reflow branch] dropdown menus for autocomplete widgets don't resize properly

Categories

(Core :: XUL, defect)

Other Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: db48x, Assigned: bzbarsky)

References

Details

(Keywords: qawanted)

Attachments

(1 file)

268 bytes, application/vnd.mozilla.xul+xml
Details
The easiest way to reproduce is to type into the urlbar. The longer you type, the fewer urls will match, and eventually you'll narrow it down enough that the list will be shorter than the size of the dropdown menu. In a normal trunk build this causes the menu to get shorter while on the branch it stays the same size and just doesn't show anything in the remaining area.+
Summary: using the reflow branch, dropdown menus for autocomplete widgets don't resize properly → [reflow branch] dropdown menus for autocomplete widgets don't resize properly
Would it be possible to create a smaller XUL file showing this than the entire browser UI?  Needing to load it with -chrome is fine.
Keywords: qawanted
Attached file Minimal-ish testcase
This needs to be loaded as chrome to work.
I should note that if I make menupopups not be reflow roots this bug persists, so this is not quite the same as bug 349585.
So if I keep the popup as a reflow root and reset enough stuff in nsHTMLReflowState::InitConstraints I get the right behavior... So depending on what happens in bug 349585 this might start working.

And it needs to be a reflow root for the same reason as other popups -- the popupset (which is what reflows the popup) is not on the popup's parent chain, so the popup simply never gets reflown.  The only reason the display changes is that it's a tree, and trees don't need reflow to change what they look like.
Depends on: 349585
Assignee: dbaron → bzbarsky
Fixed by checking in that patch.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Er, I mean the patch in bug 349585.
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.menus → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: