debugger icon indicating copy to clipboard operation
debugger copied to clipboard

Fix label position in menuitem

Open magicp-github opened this issue 9 years ago • 7 comments

Steps to Reproduce

  1. Go to any sites (e.g. "about:home")
  2. Select any sources
  3. Right click on tab
  4. Check context menu items

Actual Results Label position begin on the far left.

Expected Results Label position begin after menu-iconic-left.

fix-label-position-in-menuitem

magicp-github avatar Feb 06 '17 00:02 magicp-github

This must be on windows. This is similar to another windows issue about a line through the items. I think we have an issue with the shim that's handling the context menu for windows.

clarkbw avatar Feb 06 '17 03:02 clarkbw

@clarkbw is this something for any context menu in windows? if so we should refile in bugzilla.

jasonLaster avatar Mar 08 '17 17:03 jasonLaster

@jasonLaster Only for the new debugger.

nt1m avatar Apr 10 '17 09:04 nt1m

Two possible fixes here:

  • Import chrome://global/skin/menu.css when isFirefoxPanel is true (the CSS file is only imported automatically for XUL documents)
  • Append the menu in the parent doc (toolbox) which should have the CSS file, when isFirefoxPanel is true

nt1m avatar Apr 10 '17 09:04 nt1m

I looked into a bit and while the padding is off, it does not affect any of the other default styling. I'm going to move it off this current sprint as I don't think it should block our launch criteria.

Hopefully, I'll get my windows development environment setup soon though and can do this as I do think we should get the default styling.

jasonLaster avatar Jun 08 '17 20:06 jasonLaster

I looked a bit at this, and it seems like what I said in my previous comment might be wrong. When inspecting the menupopup, I see that all menuitems have .menu-text as their child, but the debugger menu doesn't seem to have .menu-text.

Debugger menu:

<menuitem>Foo</menuitem>

Other menus:

<menuitem>
  <xul:box class="menu-text">Foo</xul:box>
</menuitem>

nt1m avatar Jun 09 '17 04:06 nt1m

Fixed! Thanks for your patience @magicp-github :)

jasonLaster avatar Jun 09 '17 21:06 jasonLaster