Prevent flicking page when it 100% fits in window

This commit is contained in:
miruka 2019-07-15 18:54:21 -04:00
parent 18c9ff30cb
commit 83cc148cdc
2 changed files with 2 additions and 2 deletions

View File

@ -64,6 +64,7 @@ Page {
clip: true clip: true
contentWidth: parent.width contentWidth: parent.width
contentHeight: boxColumn.childrenRect.height contentHeight: boxColumn.childrenRect.height
interactive: contentWidth > width || contentHeight > height
HColumnLayout { HColumnLayout {
id: boxColumn id: boxColumn

View File

@ -48,8 +48,7 @@ HGridLayout {
Layout.alignment: Qt.AlignHCenter Layout.alignment: Qt.AlignHCenter
Layout.preferredWidth: Layout.preferredWidth: Math.min(flickable.height, avatarPreferredSize)
Math.min(flickable.height, theme.minimumSupportedWidth)
Layout.preferredHeight: Layout.preferredWidth Layout.preferredHeight: Layout.preferredWidth
HFileDialogOpener { HFileDialogOpener {