[Project_owners] Firefox resize icon in toolbar

Tracy Norris tnorris at nc.rr.com
Fri Jan 14 10:04:25 EST 2005

There's a simpler way, which is to apply a style sheet to the icons. 
like this:

#autofill-button {
  -moz-image-region: rect(0px 24px 24px 0px);

toolbar[iconsize="small"] #autofill-button {
  -moz-image-region: rect(0px 16px 16px 0px);

Didier Ernotte wrote:

>I have added a toolbarbutton in the toolbarpalette of firefox in my
>extension's overlay, but I have a problem with the size of the icon.
>There is a checkbox in the toolbar/customize dialog that controls the
>size of the icons (maybe 16x16 and 32x32) and I want to be notified
>when the size is changed. Any one knows how to do that ? I have noticed
>in firefox source that a "iconsize" attribute in defined with the
>"small" value. Do I have to add a broadcaster to observe this attribute
>Do you Yahoo!? 
>Yahoo! Mail - now with 250MB free storage. Learn more.
>Project_owners mailing list
>Project_owners at mozdev.org

More information about the Project_owners mailing list