4

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?

4

1 回答 1

2

您必须使用该resize方法手动调整大小

如果您通过某种方式检测页面的最佳解决方案,找到了一个可以自动调整大小的解决方案,然后提交拉取请求提交错误

于 2013-07-28T22:14:56.120 回答