Closed
Bug 920691
Opened 11 years ago
Closed 10 years ago
button images can overflow
Categories
(Firefox Graveyard :: SocialAPI, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: mixedpuppy, Unassigned)
Details
Attachments
(1 file)
18.49 KB,
image/png
|
Details |
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?
Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(jaws)
Comment 1•11 years ago
|
||
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)
Reporter | ||
Comment 2•10 years ago
|
||
need for this fix on the old style toolbarbutton is removed by bug 935640
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•