Skip to content

Commit

Permalink
Avoid menu moving when starting the app or rotating the device
Browse files Browse the repository at this point in the history
  • Loading branch information
pvuorela committed Jun 8, 2016
1 parent 1c9d711 commit 47508dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions qml/MenuFingerterm.qml
Expand Up @@ -49,7 +49,8 @@ Item {
id: rect

color: "#e0e0e0"
x: menuWin.showing ? menuWin.width-rect.width : menuWin.width+1
anchors.left: parent.right
anchors.leftMargin: menuWin.showing ? -width : 1
width: flickableContent.width + 22*window.pixelRatio;
height: menuWin.height

Expand All @@ -58,7 +59,7 @@ Item {
anchors.fill: parent
}

Behavior on x {
Behavior on anchors.leftMargin {
NumberAnimation { duration: 100; easing.type: Easing.InOutQuad; }
}

Expand Down

0 comments on commit 47508dd

Please sign in to comment.