fix(SettingsDirtyToastMessage): Avoid scrolling when content height is 0
Fixes: #8247
This commit is contained in:
parent
f34d0d7152
commit
77c5084355
|
@ -38,7 +38,7 @@ ColumnLayout {
|
|||
readonly property bool dirty: descriptionPanel.displayName.text !== profileStore.displayName ||
|
||||
descriptionPanel.bio.text !== profileStore.bio ||
|
||||
profileStore.socialLinksDirty ||
|
||||
biometricsSwitch.checked != biometricsSwitch.currentStoredValue ||
|
||||
biometricsSwitch.checked !== biometricsSwitch.currentStoredValue ||
|
||||
profileHeader.icon !== profileStore.profileLargeImage
|
||||
|
||||
readonly property bool valid: !!descriptionPanel.displayName.text && descriptionPanel.displayName.valid
|
||||
|
|
|
@ -55,7 +55,7 @@ Rectangle {
|
|||
const margin = 20;
|
||||
const offset = h2 - (y1 - y2);
|
||||
|
||||
if (offset <= 0)
|
||||
if (offset <= 0 || flickable.contentHeight <= 0)
|
||||
return;
|
||||
|
||||
toastFlickAnimation.from = flickable.contentY;
|
||||
|
|
Loading…
Reference in New Issue