How to get Window width/height
I'm trying to get Window width by calling:
However it returns "undefined". It's the same for other Window properties:
I tried to use it instead of calling some root Item:
because in some Screen.onHeightChanged callback it returns 0.
Why is it undefined ? Do I make something wrong ?
Since those are not attached properties they will need to be accessed by
Aww, OK. I thought it works the same as Screen, e.g.