@@ -36,10 +36,10 @@ Item {
3636 Item {
3737 id: contentContainer
3838 anchors.centerIn: parent
39− height: rotationAngle == 90 || rotationAngle == 270 ? parent.width : parent.height
40− width: rotationAngle == 90 || rotationAngle == 270 ? parent.height : parent.width
39+ height: rotation == 90 || rotation == 270 ? parent.width : parent.height
40+ width: rotation == 90 || rotation == 270 ? parent.height : parent.width
4141
42− readonly property int rotationAngle: {
42+ rotation: {
4343 switch (Screen.orientation) {
4444 case Qt.PortraitOrientation:
4545 return 0;
@@ -51,12 +51,7 @@ Item {
5151 return 90;
5252 }
5353 }
54−
55− transform: Rotation {
56− origin.x: contentContainer.width / 2
57− origin.y: contentContainer.height / 2; axis { x: 0; y: 0; z: 1 }
58− angle: contentContainer.rotationAngle
59− }
54+ transformOrigin: Item.Center
6055
6156 VirtualTouchPad {
6257 anchors.fill: parent