Thunderbird Mailextensions popup size too small
Categories
(Thunderbird :: Add-Ons: Extensions API, enhancement)
Tracking
(Not tracked)
People
(Reporter: florian.unger, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.98 Safari/537.36
Steps to reproduce:
I develop an addon using the Mailextensions API which uses browserAction popup to present a UI form to the user where he can enter information combined with information extracted from the selected mail.
Actual results:
The size of the popup is limited to a size of 800x600 pixels which is not sufficient to display all the UI elements I need.
Expected results:
It should either be possible to show popups larger than 800x600 pixels
or it should be possible to show the extensions UI in a new tab where a larger UI area can be shown.
Comment 1•6 years ago
|
||
You can set the width and height yourself when calling windows.create.
Thank you for pointing me in this direction.
I tried to adopt the example of windows.create. found here:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/create
for my addon but
var creating = browser.windows.create({
url: popupURL,
type: "popup",
height: 200,
width: 200
});
did not work as expected in Thunderbird. It did not open the addon html as a popup but instead opened a new Thunderbird main window as a popup.
I ended up using "browser.tabs.create" instead and do now open my extension UI in a new tab.
I found this in example:
https://github.com/thundernest/sample-extensions/blob/master/addressBooks/background.js
Description
•