From b81df7bd1a4164ff58fc13dc994773e36d722473 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 23 Jul 2018 21:05:31 +0200 Subject: Do not move the search-box back down if we delete characters in the search box --- framework/qml/SearchPopup.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'framework') diff --git a/framework/qml/SearchPopup.qml b/framework/qml/SearchPopup.qml index b1787e1b..7548eaa9 100644 --- a/framework/qml/SearchPopup.qml +++ b/framework/qml/SearchPopup.qml @@ -31,6 +31,7 @@ Item { property string backgroundColor: Kube.Colors.darkCharcoalGrey property real backgroundOpacity: 0 property real searchAreaOpacity: backgroundOpacity / 4 + property bool movedSearchBox: false NumberAnimation on backgroundOpacity { id: fadeIn @@ -137,8 +138,8 @@ Item { State { name: "searchInProgress" when: find.text.length != 0 - PropertyChanges {target: filterField; y: Kube.Units.gridUnit} - PropertyChanges {target: root; searchAreaOpacity: 0} + PropertyChanges {target: filterField; restoreEntryValues: false; y: Kube.Units.gridUnit} + PropertyChanges {target: root; restoreEntryValues: false; searchAreaOpacity: 0} } ] -- cgit v1.2.3