Closed Bug 345739 Opened 18 years ago Closed 18 years ago

'Block Images from %s' context menu item is misaligned

Categories

(Firefox :: Menus, defect)

2.0 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 2 beta2

People

(Reporter: jminta, Assigned: mark)

References

Details

(Keywords: fixed1.8.1, regression)

Attachments

(1 file, 1 obsolete file)

The context menu option for 'Block images from %s' is misaligned on Mac.  (Right click on an image to show this.)  This is a regression, but I don't have a window yet.
Flags: blocking-firefox2?
mconnor says that this is likely related to something Mento did :)
Assignee: nobody → mark
Flags: blocking-firefox2? → blocking-firefox2+
Target Milestone: --- → Firefox 2 beta2
Either me or Stefan.
I made it bad, so that the "B" in Block was under the "e" in Set above it.  Stefan made it worse, now the B is under the space after the word Set.  Marking dependencies.
Blocks: 342515, 344570
Attached patch Theme fix (obsolete) — Splinter Review
Attachment #230473 - Flags: review?(bugs.mano)
Comment on attachment 230473 [details] [diff] [review]
Theme fix

so this regresses the searchbar popup
Attachment #230473 - Flags: review?(bugs.mano) → review-
"So," actually, the theme was doing the right thing.  This shouldn't be represented as an iconic menu item, it should be represented as <menuitem type=checkbox>.
Attachment #230473 - Attachment is obsolete: true
Attachment #230477 - Flags: review?(bugs.mano)
Comment on attachment 230477 [details] [diff] [review]
Make it a checkbox menuitem

Thanks for cleaning this up, please let this bake on trunk first to enusre there was no real reason to make this so bogus...

r=mano.
Attachment #230477 - Flags: review?(bugs.mano) → review+
Checked in on the trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 230477 [details] [diff] [review]
Make it a checkbox menuitem

Marking a? now or I'll forget about it, but I intend to give this a day or two of bake time.
Attachment #230477 - Flags: approval1.8.1?
(In reply to comment #6)
> Created an attachment (id=230477) [edit]
> Make it a checkbox menuitem
> 
> "So," actually, the theme was doing the right thing.  This shouldn't be
> represented as an iconic menu item, it should be represented as <menuitem
> type=checkbox>.
> 
(In reply to comment #6)
> Created an attachment (id=230477) [edit]
> Make it a checkbox menuitem
> 
> "So," actually, the theme was doing the right thing.  This shouldn't be
> represented as an iconic menu item, it should be represented as <menuitem
> type=checkbox>.
> 

Right, since checkbox menuitems are menuitem-iconic ones (see menu.css#303). Any menu-iconic menu item that is not in a menulist or not a checkbox/radio menuitem will have 21 px space at the left. The menulist/checkbox ones has only 3 px padding to the left. Since the checkmark image takes 16px in width and has a margin of 2px the text will end up 21 px to the left (and align with text in "normal" menuitems).

FYI: Native Mac iconic menu items put the left edge of the icon at the same horizontal position as the left edge of the text of non-iconic menu items.  Take a look at Safari's bookmarks menu and note how it matches the new (correct) behavior of the search engine selection menu in Firefox, and the behavior of menu items in bookmark folders and RSS feeds in the bookmarks toolbar.

(Too bad our native menu items in the menu bar don't have icons...hmm...)
(In reply to comment #6)
> Created an attachment (id=230477) [edit]
> Make it a checkbox menuitem
> 
> "So," actually, the theme was doing the right thing.  This shouldn't be
> represented as an iconic menu item, it should be represented as <menuitem
> type=checkbox>.
> 

Righ(In reply to comment #11)
> FYI: Native Mac iconic menu items put the left edge of the icon at the same
> horizontal position as the left edge of the text of non-iconic menu items. 
> Take a look at Safari's bookmarks menu and note how it matches the new
> (correct) behavior of the search engine selection menu in Firefox, and the
> behavior of menu items in bookmark folders and RSS feeds in the bookmarks
> toolbar.
> 
> (Too bad our native menu items in the menu bar don't have icons...hmm...)
> 

There's a 5 years old "need-more-work" patch in bug 46177 :-;
Whiteboard: [baking until 07-26]
Whiteboard: [baking until 07-26]
Comment on attachment 230477 [details] [diff] [review]
Make it a checkbox menuitem

a=drivers. Please land this on the MOZILLA_1_8_BRANCH.
Attachment #230477 - Flags: approval1.8.1? → approval1.8.1+
Checkered in on MOZILLA_1_8_BRANCH before 1.8.1b2.
Keywords: fixed1.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: