Annihilator8080
Annihilator8080

Reputation: 2139

How to automatically resize the panel in a firefox extension

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

Answers (1)

erikvold
erikvold

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

Related Questions