Closed Bug 362485 Opened 19 years ago Closed 19 years ago

[reflow branch]The drop down button is slightly in the wrong spot in the combobox

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: martijn.martijn, Assigned: bzbarsky)

References

()

Details

(Keywords: testcase)

Attachments

(3 files)

This is a follow-up from bug 362424. Comment from Boris: > The reflow branch issue is probably due to the use of GetScrollBarDimensions > and the use of double-width scrollbars here.... I'd love to step through the > code with you sometime to figure out what's going on, but that should probably > be a separate bug. (the testcase is not completely minimised since it was made for bug 362424, but that should not really matter) This is a screenshot of what I see in my reflow branch build: https://bugzilla.mozilla.org/attachment.cgi?id=247123
Catch me on IRC sometime when you have time to mess with this?
Attached patch added printfs — — Splinter Review
Ok, I added these printfs, and loaded a testcase with auto width combobox, these are the results: buttonWidth: 480 aReflowState.mComputedWidth: 3375 aReflowState.parentReflowState->mComputedWidth: 3975 aReflowState.mComputedBorderPadding.LeftRight(): 60 mComboBox->mDisplayWidth: 3495 aPresContext->ScaledPixelsToTwips(): 15.000000
Attached file testcase, that I used —
Attached patch Possible patch — — Splinter Review
Martijn, does this help? Seems to me like it should...
Yes, that fixes it, r+ from me ;)
Checked in on the branch.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Assignee: nobody → bzbarsky
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: