From ce7e7fd38ac96b80f560e1a820e09b1c69d791c6 Mon Sep 17 00:00:00 2001 From: marcin Date: Thu, 17 Jul 2014 14:09:11 +0200 Subject: [PATCH] https://trello.com/c/FEErSzDM/49-history-page-works-wrong-when-window-size-is-changing --- pages/History.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/History.qml b/pages/History.qml index 528b34db..4cdf17a0 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -147,7 +147,7 @@ Rectangle { text: qsTr("\ looking for Advance filtering?") font.underline: false - onLinkActivated: tableRect.height = tableRect.collapsedHeight + onLinkActivated: tableRect.height = Qt.binding(function(){ return tableRect.collapsedHeight }) } Label { @@ -245,7 +245,7 @@ Rectangle { anchors.fill: parent onClicked: { parent.expanded = !parent.expanded - tableRect.height = parent.expanded ? tableRect.expandedHeight : tableRect.middleHeight + tableRect.height = Qt.binding(function(){ return parent.expanded ? tableRect.expandedHeight : tableRect.middleHeight }) } } }