button images can overflow

RESOLVED WONTFIX

Status

()

Firefox
SocialAPI
RESOLVED WONTFIX
5 years ago
4 years ago

People

(Reporter: mixedpuppy, Unassigned)

Tracking

26 Branch
x86
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Created attachment 810065 [details]
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?
(Reporter)

Updated

5 years ago
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)
(Reporter)

Comment 2

4 years ago
need for this fix on the old style toolbarbutton is removed by bug 935640
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.