Change the Expand Ratio of an UI Element on a smaller screen?

As written in the title , is this possible?

Yes, it’s possible. You just need to get the current browser info with getPage().getWebBrowser() and set the expand ratio as you’d like based on the values returned from getScreenWidth() and getScreenHeight().


You may also want to add a ResizeListener on the Page object so you can handle changes dynamically.