From 84c5ff0bcbeb5e9c14a97997f8bf8e153f6f5f89 Mon Sep 17 00:00:00 2001 From: Lasath Fernando Date: Tue, 28 Apr 2020 00:38:13 -0700 Subject: [PATCH] Fix binding loops for height --- resources/qml/TimelineView.qml | 11 ++++++++--- resources/qml/delegates/Pill.qml | 6 ++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index ce8ad62c..45d9c3f2 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -208,9 +208,14 @@ Page { text: chat.model.formatDateSeparator(modelData.timestamp) color: colors.brightText - height: contentHeight * 1.2 - width: contentWidth * 1.2 - horizontalAlignment: Text.AlignHCenter +// height: contentHeight * 1.2 +// width: contentWidth * 1.2 + leftPadding: 24 + rightPadding: 24 + topPadding: 8 + bottomPadding: 8 + + horizontalAlignment: Text.AlignHCenter background: Rectangle { radius: parent.height / 2 color: colors.dark diff --git a/resources/qml/delegates/Pill.qml b/resources/qml/delegates/Pill.qml index 27985b58..65a4aedf 100644 --- a/resources/qml/delegates/Pill.qml +++ b/resources/qml/delegates/Pill.qml @@ -5,8 +5,10 @@ Label { color: colors.brightText horizontalAlignment: Text.AlignHCenter - height: contentHeight * 1.2 - width: contentWidth * 1.2 +// height: contentHeight * 1.2 +// width: contentWidth * 1.2 + padding: 12 + background: Rectangle { radius: parent.height / 2 color: colors.dark