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
contentWidth: parent.width
contentHeight: boxColumn.childrenRect.height
interactive: contentWidth > width || contentHeight > height
HColumnLayout {
id: boxColumn

View File

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