Prevent flicking page when it 100% fits in window
This commit is contained in:
parent
18c9ff30cb
commit
83cc148cdc
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user