Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 662236 - Default Image Width/Height; r=myk
Browse files Browse the repository at this point in the history
(cherry picked from commit 3dcc5e1)
  • Loading branch information
Will Bamberg authored and mykmelez committed Nov 1, 2011
1 parent c9ca127 commit aaa8d0f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/addon-kit/docs/widget.md
Expand Up @@ -36,6 +36,9 @@ For example, this widget contains an image, so it looks like a simple icon:
});

Upon creation, the widget is automatically added to the add-on bar.
You can set the width of a widget, but the height is fixed so as to fit in the
add-on bar. If the content is an image, it is automatically scaled to be 16x16
pixels.

This widget contains an entire web page:

Expand Down Expand Up @@ -253,12 +256,16 @@ Represents a widget object.
It may contain HTML. Widgets must have either the `content` property or the
`contentURL` property set.

If the content is an image, it is automatically scaled to be 16x16 pixels.

@prop [contentURL] {string}
An optional string URL to content to load into the widget. This can be
[local content](dev-guide/addon-development/web-content.html) or remote
content, an image or web content. Widgets must have either the `content`
property or the `contentURL` property set.

If the content is an image, it is automatically scaled to be 16x16 pixels.

@prop [panel] {Panel}
An optional [panel](packages/addon-kit/docs/panel.html) to open when the
user clicks on the widget. Note: If you also register a "click" listener,
Expand Down

0 comments on commit aaa8d0f

Please sign in to comment.