Reputation: 1422
The extension source code is at https://github.com/n8chz/prostetnic-chrome
It works on both Chromium and Firefox, but on Firefox the popup has fixed dimensions, so instead of having the popup grow as the script adds content to the popup, a vertical scrollbar appears, allowing me to view the content, but it's a bit of a speed bump that I'd be happier without. Apparently auto-resizing is a built-in feature of BrowserAction popups in Chrome.
The BrowserAction is declared in manifest.json as follows:
"browser_action": {
"default_icon": {
"19": "search19.png",
"38": "search.png"
},
"default_title": "Search for words in previous highlights",
"default_popup": "popup.html"
},
Are there perhaps any hidden instantiation options other than the ones in the documentation?
One thing that helps (but produces a different effect from in Chrome) is adding style="height: 600px"
to the popup's <html>
element. Anything 601px or larger results in a popup with a vertical scrollbar.
Upvotes: 2
Views: 1121
Reputation: 293
There are no hidden options other than what is in the docs. This is a known bug which can be tracked at following site. Doesn't work in FF50.0a2 yet.
Bug 1215025 - Popup size does not respond to content change. Target Milestone: mozilla50 https://bugzilla.mozilla.org/show_bug.cgi?id=1215025
Upvotes: 2