fix(SettingsDirtyToastMessage): Avoid scrolling when content height is 0

Fixes: #8247
This commit is contained in:
Boris Melnik 2022-11-15 16:54:26 +03:00
parent f34d0d7152
commit 77c5084355
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ ColumnLayout {
readonly property bool dirty: descriptionPanel.displayName.text !== profileStore.displayName || readonly property bool dirty: descriptionPanel.displayName.text !== profileStore.displayName ||
descriptionPanel.bio.text !== profileStore.bio || descriptionPanel.bio.text !== profileStore.bio ||
profileStore.socialLinksDirty || profileStore.socialLinksDirty ||
biometricsSwitch.checked != biometricsSwitch.currentStoredValue || biometricsSwitch.checked !== biometricsSwitch.currentStoredValue ||
profileHeader.icon !== profileStore.profileLargeImage profileHeader.icon !== profileStore.profileLargeImage
readonly property bool valid: !!descriptionPanel.displayName.text && descriptionPanel.displayName.valid readonly property bool valid: !!descriptionPanel.displayName.text && descriptionPanel.displayName.valid

View File

@ -55,7 +55,7 @@ Rectangle {
const margin = 20; const margin = 20;
const offset = h2 - (y1 - y2); const offset = h2 - (y1 - y2);
if (offset <= 0) if (offset <= 0 || flickable.contentHeight <= 0)
return; return;
toastFlickAnimation.from = flickable.contentY; toastFlickAnimation.from = flickable.contentY;