[electron-chrome-extensions] popups in incorrect place when drawn with frame on linux
if the browserwindow has a frame on linux (at least), then popups are placed at the wrong height and overlap the icon:
Ok, so the issue is that when the bounds get returned:
- height is the inner height (excluding the top frame, same as doing
document.documentElement.getBoundingClientRect()) - x is the position at the top of the frame
getContentBounds returns the same values so is not a solution. If we can know the bottom offset of the window then we can use that together with the (consistent) height to find the right offset.
Ok so this is a known issue: https://github.com/electron/electron/issues/3183
@samuelmaddock would you be willing to make POSITION_PADDING configurable so I can adapt it depending on the platform?
@samuelmaddock the difference between getBounds() and getContentBounds() is 0 on linux, so this issue is not solved. (I previously mentioned this here: https://github.com/samuelmaddock/electron-browser-shell/issues/121#issuecomment-2703431398 )