Get browser window size in Jmix 2.x

Hello,

I was just looking for how to get the browser’s window size, and I landed on this forum post. However, getBrowserWindowWidth() and getBrowserWindowHeight() don’t seem to be available methods now in the Page class. How should I access this information?

Thank you,
Adam

Hi!

If it suits your case…You can try to use: UI.getCurrent().getInternals().getExtendedClientDetails().getWindowInnerWidth().

Regards,
Dmitriy

1 Like

That’s what I needed! Thanks!

Adam