Is there a way to get the current size (width and height) of a View? Or the size of the web browser window that the view is being displayed in?
I can access the defaultSize property but this value is constant. My intention is to have the view’s root set to percent mode to fit the window it is in, and then use its size to scale and position other components. The main reason for this is to bind this size value to label’s font size as they do not shrink as their containing view shrinks.
I’m expecting something along the lines of the Vision method system.gui.findWindow(‘window name’).width/height.