From 53992b91250f4cefdcc27eb22fd9a40a557131e3 Mon Sep 17 00:00:00 2001 From: Dorian Zedler Date: Wed, 18 Jul 2018 14:16:11 +0200 Subject: [PATCH] fixed a bug that made the reset button disappear on windows --- main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.qml b/main.qml index b2d078c..b68c626 100644 --- a/main.qml +++ b/main.qml @@ -125,7 +125,7 @@ Window { //state for the start page PropertyChanges { target: time; text: "Click start to start"; font.pixelSize: parent.height * 0.3 } PropertyChanges { target: time_container; height: parent.height * 0.15 } - PropertyChanges { target: startButt; enabled: true; text: "start"; height: parent.height - (parent.height * 0.5); anchors.bottomMargin: parent.height * 0.5 - height * 0.5 } + PropertyChanges { target: startButt; enabled: true; text: "start"; height: parent.height - (parent.height * 0.5); anchors.bottomMargin: parent.height * 0.5 - startButt.height * 0.5 } }, State { name: "STARTING" @@ -145,7 +145,7 @@ Window { name: "STOPPED" //state when the meassuring is over PropertyChanges { target: time; text: ( root.stoppedTime / 1000 ).toFixed(3) + " sec"; font.pixelSize: parent.height * 0.1 } - PropertyChanges { target: startButt; enabled: true; text: "reset"; height: parent.height - (parent.height * 0.8); anchors.bottomMargin: parent.height * 0.2 - height * 0.5 } + PropertyChanges { target: startButt; enabled: true; text: "reset"; height: parent.height - (parent.height * 0.8); anchors.bottomMargin: parent.height * 0.2 - startButt.height * 0.5 } PropertyChanges { target: time_container; height: parent.height * 0.8 } } ]