My simple question is: Can popups if add-ons somehow determinate whether they are shown in the overflow menu (i.e. that ) or as a “usual” button in the toolbar, when clicked.
The reason is my add-on wants to set a (max)height on the html/body elements only when shown as a “usual popup”, so the scrollbar when resizing the popup with a large height does not appear, while the same CSS option limits the popup in the overflow menu from getting resized at all.
So basically I’d have to set a CSS property conditionally (via JS, if needed, that would not be a problem).
If you want to know the details of what I want to accomplish, see this issue: