Closed Bug 595037 Opened 14 years ago Closed 14 years ago

Panels width/height doesn't automatically change

Categories

(Add-on SDK Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peregrino, Assigned: peregrino)

Details

Attachments

(1 file, 2 obsolete files)

Steps to reproduce:
1) create a panel
2) show it
3) try to change it's width or height

Expected behavior:
That the panel automatically changes to the new dimensions.

Seen behavior:
Nothing happens until you hide and show the panel again.

Reproducible:
Allways
Attached patch WIP adds sizeTo for panels (obsolete) — Splinter Review
Myk, I went the way you said about adding a sizeTo for the panels. I also added some tests.

What do you think?
Assignee: nobody → colmeiro
Attachment #475124 - Flags: feedback?(myk)
Comment on attachment 475124 [details] [diff] [review]
WIP adds sizeTo for panels

This looks great!  The only change I would make is to rename the public method to "resize", which seems a bit easier to comprehend (and easier to type) than the mixed-case "sizeTo" in the XUL API.
Attachment #475124 - Flags: feedback?(myk) → feedback+
Attached patch Adds resize method to panels (obsolete) — Splinter Review
Attachment #475124 - Attachment is obsolete: true
Attachment #475696 - Flags: review?(myk)
Attachment #475696 - Attachment is patch: true
Attachment #475696 - Attachment mime type: application/octet-stream → text/plain
Comment on attachment 475696 [details] [diff] [review]
Adds resize method to panels

This code looks great!  Unfortunately, the code it is modifying has changed significantly in the last few days, such that this patch no longer applies.  Can you update it to apply to the new version of panel.js?  Also, this new public method should be documented in panel.md.
Attachment #475696 - Flags: review?(myk) → review-
Rewritten the patch so that it can be applied to the new panel.js code. Also added documentation in docs/panel.md
Attachment #475696 - Attachment is obsolete: true
Attachment #477395 - Flags: review?(myk)
Comment on attachment 477395 [details] [diff] [review]
Adds resize method to panels V2

>+Resizes the panel to its new dimentions.

Nit: dimentions -> dimensions

Otherwise, looks great! r=myk
Attachment #477395 - Flags: review?(myk) → review+
Fixed by changeset https://hg.mozilla.org/labs/jetpack-sdk/rev/2ae4a0b892c5.

Thanks for the fix!
Status: NEW → RESOLVED
Closed: 14 years ago
OS: Mac OS X → All
Hardware: x86 → All
Resolution: --- → FIXED
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Version: Trunk → unspecified
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: