Skip to content
Snippets Groups Projects
Commit 86588018 authored by Malte E's avatar Malte E
Browse files

hopfefully the button works now

parent cf7353c1
No related branches found
No related tags found
No related merge requests found
Pipeline #2748 passed
...@@ -144,8 +144,8 @@ ApplicationWindow { ...@@ -144,8 +144,8 @@ ApplicationWindow {
property bool cut: implicitHeight > 100 property bool cut: implicitHeight > 100
property bool showMore property bool showMore
clip: true clip: true
height: cut && !showMore? 100 : undefined Layout.maximumHeight: showMore? Number.POSITIVE_INFINITY : 100
Layout.preferredHeight: height Layout.preferredHeight: implicitHeight
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true Layout.fillWidth: true
Layout.leftMargin: Nheko.paddingLarge Layout.leftMargin: Nheko.paddingLarge
...@@ -373,8 +373,8 @@ ApplicationWindow { ...@@ -373,8 +373,8 @@ ApplicationWindow {
} }
Button { Button {
id: showMoreButton id: showMoreButton
x: contentLayout1.showMorePos.x anchors.horizontalCenter: flickable.horizontalCenter
y: Math.min(contentLayout1.showMorePos.y-flickable.contentY,flickable.height-height) y: Math.min(showMorePlaceholder.y+contentLayout1.y-flickable.contentY,flickable.height-height)
visible: roomTopic.cut visible: roomTopic.cut
text: roomTopic.showMore? "show less" : "show more" text: roomTopic.showMore? "show less" : "show more"
onClicked: {roomTopic.showMore = !roomTopic.showMore onClicked: {roomTopic.showMore = !roomTopic.showMore
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment