Vaadin 8 responsive panel inside window

Hello experts,
I have a panel with fixed height (to have scroll bar) inside a window with fixed height also. But when i move the browser to smaller screen resolution, the window height is recalculated to fit the browser which cause my panel display incorrectly. How could i adjust my panel implementation to fix this ?
Thanks in advance

I don’t know about configuration, but maybe you could add a browser window resize listener in the UI and do something there?

I tried, but the resize listener did not listen to the auto scale action (when open in smaller screen)

In that case, you can get the initial screen dimensions from UI.getCurrent().getPage().getWebBrowser().getScreenWidth() / .getScreenHeight()

I can get the height to re calculate the height of the panel. Thank you