We find two situations on gallery code that triggers the window height value issues.
The first one is setting the the window state to fullscreen after calling the show method from the QQuickView. The issue does not happen if the window state is changed before calling the show method.
The second one is when we call the method winId from the QQuickView before calling the show method. The issue also does not happen if the winId call happens after the show method.
I just attached a sample application that triggers the bug by calling the winId method before the show method.
On the MR attached to this bug we are changing the sequence of the calls on gallery to work around the issue.
We find two situations on gallery code that triggers the window height value issues.
The first one is setting the the window state to fullscreen after calling the show method from the QQuickView. The issue does not happen if the window state is changed before calling the show method.
The second one is when we call the method winId from the QQuickView before calling the show method. The issue also does not happen if the winId call happens after the show method.
I just attached a sample application that triggers the bug by calling the winId method before the show method.
On the MR attached to this bug we are changing the sequence of the calls on gallery to work around the issue.