Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.7.0 Beta
-
None
-
Android 4.4
-
9b682c12c443f799f5e38cf0a76acfc3754e9e56
Description
When item replaced from StackView and returned back, it has wrong dimensions. I can reproduce it on Android: run test program, click on "replace", click on "back" and rotate the device.
Test program:
import QtQuick 2.6 import QtQuick.Controls 2.0 ApplicationWindow { visible: true width: 640 height: 480 Rectangle { id: first color: "red" Button { anchors.centerIn: parent text: "replace" onClicked: stackView.replace(null, second) } } Component { id: second Rectangle { color: "blue" Button { anchors.centerIn: parent text: "return" onClicked: stackView.replace(null, first) } } } StackView { id: stackView anchors.fill: parent initialItem: first } }
If I made first to be a Component, it has proper size after replacing back.