Reputation: 2139
I am making a firefox extension using their addon builder and I am trying to get a popup to open when I click on a toolbar button. However,it seems like the dimensions of the panel can not be set to auto. I load some content after making an api call and therefore the html content of the panel varies. How do I make the panel resize according to the html document size automatically, like the default popup in google chrome extensions?
Upvotes: 4
Views: 1336
Reputation: 16538
You'll have to do the resizing manually, using the resize
method
If you figure out a solution that works at auto resizing, by detecting what is optimal for the page somehow, then submit a pull request or submit a bug
Upvotes: 2