Real width of UI

Develop and Deploy Native Apps for Windows, OS X, Linux, Unix ...
Post Reply
wahono77
Posts: 90
Joined: Sat Apr 13, 2013 6:04 am

Real width of UI

Post by wahono77 »

I set a UI with width=100
I set this UI.dock=width
How to get real width when running, I try using UI.getWidth(), but I got 100 whereas this UI is resized to whole of screen, it's width should be 1366.

How to fix it?

Thanks

support
Posts: 356
Joined: Sat Apr 27, 2013 9:22 am

Re: Real width of UI

Post by support »

javascript code
UI.getRoot().width();

wahono77
Posts: 90
Joined: Sat Apr 13, 2013 6:04 am

Re: Real width of UI

Post by wahono77 »

Thank you very much

Post Reply