mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-16 16:47:24 +00:00
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 ||
|
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
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user