Closed Bug 920691 Opened 11 years ago Closed 10 years ago

button images can overflow

Categories

(Firefox Graveyard :: SocialAPI, defect)

26 Branch
x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: mixedpuppy, Unassigned)

Details

Attachments

(1 file)

Attached image button-image.png
We tend to use toolbarButton.style.listStyleImage to set images on the social buttons.  The problem with this is that a) the images come from elsewhere and b) there is no way to constrain the size in css when using listStyleImage.  The only way to constrain the image size that I am aware of is to actually set the button image (e.g. button.setAttribute("image", url) ), then we can use css to constrain the image size.

@jaws, is there any css mechanism used on combination with listStyleImage that I am unaware of?
Flags: needinfo?(jaws)
https://developer.mozilla.org/en-US/docs/CSS/-moz-image-region should get you what you need. You can constrain the image to 16x16 using -moz-image-region: rect(0, 16px, 16px, 0);
Flags: needinfo?(jaws)
need for this fix on the old style toolbarbutton is removed by bug 935640
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Product: Firefox → Firefox Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: