Hi,
within an Web Extension I defined a “default_popup” functionality.
My goal is:
If the content get’s to large, I’d like to have a scrollbar for the content, but not for the header or footer. Similar to this native Firefox popup:
But sadly I’m unable to archive this layout within my addon.
Since the content change while interacting within the popup, the popup changes it’s size to fit in the content. I would have to calculate the current popup height to fix my content and allow to show a scrollbar.
But currently I found no way on how to read the actual size of the popup. If I read the height of the body with document.body.getBoundingClientRect().height I get number of the whole document, which exceeded to popup height.
Does anyone have a clue on how to archive this?
Thanks in advance.