Closed
Bug 503124
Opened 16 years ago
Closed 16 years ago
custom size (32x16) for menupopup icons in toolbarbutton
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: usermax80, Unassigned)
Details
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.1; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.2)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1) Gecko/20090624 Firefox/3.5 (.NET CLR 3.5.30729)
I have a custom toolbar that dynamically downloads it's content. The icons there are of size 32x16.
The staight forward way to render them:
<menupopup>
<menuitem image="example.png" label="a label" class="menuitem-iconic" />
</menupopup>
results in a shrinkage of the icons.
I tried the -moz-image-region to achieve normal rendering, but the icons are either stretched or ovelapped over the vertical separating line (of the menupopup).
Is there any way customize this size?
Reproducible: Always
Steps to Reproduce:
run this in XUL editor:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window id="yourwindow" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<toolbar mode="full" id="toolbar" class="chromeclass-toolbar">
<toolbarbutton id="mainMenu" type="menu" image="http://www.xywidgets.com/widgets/il_lovebar/logo.png">
<menupopup>
<menuitem label="a label" class="menuitem-iconic" image="http://www.xywidgets.com/widgets/il_lovebar/existinguserblue.png" />
</menupopup>
</toolbarbutton>
</toolbar>
</window>
Actual Results:
the icon is shrinked to 16x16
Expected Results:
icon size expected to be rendered as in it's original dimensions.
https://developer.mozilla.org/en/XUL/PopupGuide/MenuItems#Adding_Icons_to_Menu_Items
This is a support issue and not a Firefox bug. You should use support.mozilla.org for further help. Also, mozillazine.org has a great forums for extension/theme development that can also help you out.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Version: unspecified → 3.5 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•