Closed Bug 430434 Opened 17 years ago Closed 17 years ago

dropdown button on menulists in Vista chrome should not have a hover state

Categories

(Core :: Widget: Win32, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla1.9

People

(Reporter: beltzner, Assigned: beltzner)

References

Details

Attachments

(3 files, 3 obsolete files)

Menulist buttons on Vista don't have a hover state for the dropdown button, and instead have a hover state for the entire button. We're inconsistent, and the existing hover state doesn't align properly to the edges of the menulist button. (Note: this is chrome only, we're fine in content)
Pretty sure that this is right, not at all sure how to test it (litmus?). I made sure that it didn't affect content area menulists, and has the desired effect. I'm sure I messed up some coding conventions :)
Attachment #317240 - Flags: review?(vladimir)
(the fact that our default button size is larger is, btw, a separate bug, and next on my "what to do when I'm bored and poking around in nsThemeWin" list)
Now with improved whitespace management (thx, johnath!)
Attachment #317240 - Attachment is obsolete: true
Attachment #317240 - Flags: review?(vladimir)
Attachment #317307 - Flags: review?(vladimir)
Comment on attachment 317307 [details] [diff] [review] always assume norma state if vista & not content (v2) r+a=me with grammar fixes as discussed!
Attachment #317307 - Flags: review?(vladimir)
Attachment #317307 - Flags: review+
Attachment #317307 - Flags: approval1.9+
Grammar & spacing nits fixed, carrying over r+a=vladimir
Attachment #317307 - Attachment is obsolete: true
Attachment #317322 - Flags: review+
Attachment #317322 - Flags: approval1.9+
Assignee: nobody → beltzner
Component: Widget → Widget: Win32
QA Contact: general → win32
Version: unspecified → Trunk
Checking in widget/src/windows/nsNativeThemeWin.cpp; /cvsroot/mozilla/widget/src/windows/nsNativeThemeWin.cpp,v <-- nsNativeThemeWin.cpp new revision: 3.121; previous revision: 3.120 done
Status: NEW → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9
This looks ok to me using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9pre) Gecko/2008042407 Minefield/3.0pre - the only thing I notice is that the focus ring hangs around after selection, but this happens consistently in Options in any other field like that one.
verified fixed using Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9pre) Gecko/2008042407 Minefield/3.0pre. I will file a spinoff bug on Comment 10.
Status: RESOLVED → VERIFIED
I was debugging nsNativeThemeWin but NS_THEME_DROPDOWN_TEXTFIELD was never called when drawing the widget background. The problem was that the menulist's -moz-appearance was being inherited. The fix was to set a different moz-appearance: menulist[editable="true"] { -moz-appearance: menulist-textfield; } After this fix, NS_THEME_DROPDOWN_TEXTFIELD gets called correctly when drawing the widget background mentioned above. I also checked to see if this problem was on OS X, Ubuntu, and Kubuntu, but everything worked normal on those with default settings and no code changes. I also verified in the other menulist.css files for other platforms and they all have similar settings that I came up with, winstripe was the only one missing it. On a side note, you may notice the dropdown button does not receive focus as it should, this is because of the following task and not related to this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=430434
Attachment #536213 - Flags: review?(jmathies)
Comment on attachment 536213 [details] [diff] [review] Editable menulists were not using -moz-appearance: menulist-textfield; I'm not a peer here, Dao should review this. For reference: https://wiki.mozilla.org/Modules
Attachment #536213 - Flags: review?(jmathies) → review?(dao)
Also, Brian, this bug is resolved verified, so you should open up a new bug and mark it as dependent (or blocking if this fixes a regression) instead of posting the patch on a bug that is already closed out.
(In reply to comment #14) > Also, Brian, this bug is resolved verified, so you should open up a new bug > and mark it as dependent (or blocking if this fixes a regression) instead of > posting the patch on a bug that is already closed out. Yep. (In reply to comment #12) > On a side note, you may notice the dropdown button does not receive focus as > it should, this is because of the following task and not related to this bug: > https://bugzilla.mozilla.org/show_bug.cgi?id=430434 430434 is this bug.
Attachment #536213 - Attachment is obsolete: true
Attachment #536213 - Flags: review?(dao)
Sorry Jim and Dao, Comment 12 and its patch was meant for Bug 431078. I will repost there.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: