How to Increase Firefox Sidebar Width -
I have coded sidebar like Firefox and history sidebar in a fresh profile, if I add my add-on Installing and opening the sidebar, the sidebar's width is 216px as the default value. But if I pull the right side of the sidebar and pull it to the right, then its width can be 432 px but no more.
How can I set the width of my sidebar width 432 px as the default sidebar width of my add-on?
This is not really documented, but it can be obtained like this:
var sidebar = UI sidebar ({...}); Sidebar.show (); Var window = requires ('windows / utilities'). GetMostRecentBrowserWindow (); Window.document.getElementById ('sidebar'). Style.width = "400px";
Comments
Post a Comment