Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.4.2
-
None
-
Nexus 7 2012 4.4.4, Galaxy S2 4.1.2, Galaxy S4 5.0.1
-
-
Need to set correct Window property
Description
Sample QML:
import QtQuick 2.4
import QtQuick.Window 2.2
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
Window
{
visible: true
width: Screen.width
height: Screen.height
color: "gray"
Rectangle
{ height: 44 anchors.left: parent.left anchors.right: parent.right anchors.bottom: parent.bottom clip: true visible: true color: "white" borders.width:2 borders.color: "black" }}
Randomly, after Android tablet/smartphone device orientation rotation, Screen.bottom will report a greater value than at other times. Thus, the rectangle that should be anchored to the bottom appears clipped. Rotating device between landscape and portrait some times jiggles it loose and the screen rotation reports OK.
Likely workaround is to QQmlApplicationEngine::Load/LoadData with a new root object upon screen rotation.
False Bottom bug does not ever happen on Galaxy Tablet Pro 8.4 with 4.4.2. Nor IOS.