I have a bottom section in the popup.html with "display: none!important", so that it remains hidden until button click on a toggle button in the popup.
This section gets hidden away with a second click on the toggle button.
The popup window height is adjusted accordingly for Safari on macOS. On iPad, the popup window size is increased to accommodate the bottom section the first time "display: none !important" is removed. But the height stays the same even after the bottom section is hidden again.
Upon inspection, the "html" tag does adjust its height according. Instead it's the safari UI component holding the html tag (I guess it's a webview of some kind) does not reduce its height.
Any suggestions?