Fix wrong positioning of popup in scrolled window