Closed Bug 87652 Opened 24 years ago Closed 23 years ago

Ok/Cancel buttons should be right-aligned on Windows

Categories

(SeaMonkey :: UI Design, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: hwaara, Assigned: bugzilla)

Details

(Keywords: platform-parity)

Attachments

(1 file)

Seems like by default, the Ok/Cancel buttons are not right aligned. They should be, as far as I remember. Currently, it's not. I found out when I saw all the Ok/Cancel buttons *centered* in all Editor dialogs.
The fix would be to add halign="right" to http://lxr.mozilla.org/mozilla/source/xpfe/global/resources/content/win/platformDialogOverlay.xul where the default Ok/Cancel buttons are defined for windows.
This is windows only; Mac buttons appear correct for me.
Keywords: pp
Summary: Ok/Cancel buttons should be right-aligned on windows → Ok/Cancel buttons should be right-aligned on Windows
is this still a problem?
This is a very good idea. Centered is the special case, so dialogs should have to ask for it (personally, I don't think it should be an option). The system is currently backwards. usability/polish, 0.9.4.
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.4
Right, so we'd have okCancelButtonsRight for backwards compability, and then make okCancelButtons halign="right". If we still want to give the option to have centered buttons, we could add okCancelButtonsCenter.
Attached patch patchSplinter Review
The Mac patch is completely wrong. Please do NOT check that in. What about the "help" set of buttons? Do we really need to have the "center" option? We definitely don't need it for the "help" variant. Currently no one uses the default option (that isn't right-aligned) according to http://lxr.mcom.com/ and http://lxr.mozilla.org/seamonkey/ so it doesn't seem like we need to worry about backward compatibility for the help option. I'd prefer to see a strategy where we make all buttons correct for the OS and then see if there are any issues/places where people expect the non-standard layout. Also, I'd prefer to see us remove the current "okCancelHelpButtons" definitions and rename all occurrences of "okCancelHelpButtonsRight" to "okCancelHelpButtons"
Uh, what? How is the mac patch 'completely wrong'? It just adds the same Center group as the rest of the patches, affecting nothing at all in reality. In any case, I don't care if we leave Center or not, unless that's expected on some platform. Alerts use it, but I don't think it's common enough that we have to provide it in a package like this. Also, yes, Composer is apparently using the default option in many places (or not using this package at all), from the looks of its dialog. In fact, Composer used to be the only one whose dialogs all had centered buttons. Luckily this seems to have improved a bit in the past couple weeks, but some still are centered.
I don't understand how your strategy is any different from what we're doing. Yes, the okCancelHelpButtons need to be converted as well.
The Mac patch (and possibly others?) are wrong because the button order is completely wrong. I'd expect it to be much more like the "okCancelButtons" in that file (not copy/pasted from some other platform's file). In fact, this bug was filed because Composer's dialogs had centered buttons on Windows and they shouldn't. Unless someone objects, we should get rid of the extra stuff and just have "okCancelButtons" and "okCancelHelpButtons"
Can we get this bug fixed? Can I help? I propose two phases: Phase 1: okCancelButtons are set to have halign="right" (also help version) - Monitor for bugs where people expect buttons to be centered Phase 2: all occurrences of "okCancelButtonsRight" are changed to "okCancelButtons" If necessary, we can do Phase 3 to add the "Center" option (if someone really needs that)
Blocks: 93732
Brade's idea sounds good to me. Note that this bug is windows-only.
Target Milestone: mozilla0.9.4 → mozilla0.9.5
Mass moving lower-priority bugs to 0.9.6 (with Blake's pre-consent) to make room for remaining 0.9.4/eMojo bugs and MachV planning, performance and feature work. If anyone disagrees with the new target, please let me know.
Target Milestone: mozilla0.9.5 → mozilla0.9.6
I'm trying to simplify my dialog bugs by coalescing all the very simple tasks that touch multiple dialogs into one bug. This problem is not covered by bug 93732. *** This bug has been marked as a duplicate of 93732 ***
No longer blocks: 93732
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Darn. Shouldn't have dupped this one -- it's about the more general issue of making right-align the default rather than "center" for Windows.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Sorry, Blake!
Status: REOPENED → ASSIGNED
This is fixed. <dialog> buttons have a default pack of end.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
->sujay, could you pls vrfy this for the editor dialogs? thanks!
QA Contact: sairuh → sujay
verified in 11/6 build that composer dialogs have OK/Cancel right aligned.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: