← Back to team overview

ubuntu-phone team mailing list archive

QML Page size on orientation change

 

Hi all,

I've recently enabled "automaticOrientation" in my app and I'm having some
problems..
In portrait, a Page's width and height matches that of Screen as expected
(eg. on my BQ this is width=540, height=960).
In landscape, the Page's width updates but the height stays the same (eg.
 width=919, height=960).
Has anyone else seen this?

Anyway, I don't mind working around this but to do so I will need to set
some properties on screen rotation. What is the best way to do that?
I see that there is a "Window.onWidthChanged:" signal. How can I catch this
in a MainView/Page?


Thanks for all your help so far,
Darren