fix(ProfileBioSocialsPanel): binding loops fixed

Closes: #8536
This commit is contained in:
Michał Cieślak 2022-12-01 10:41:05 +01:00 committed by Michał
parent 6ceb4bde26
commit 45774e66af
1 changed files with 9 additions and 2 deletions

View File

@ -89,13 +89,20 @@ Control {
id: scrollView
visible: root.bio
padding: 0
rightPadding: scrollBar.visible ? 16 : 0
Binding on rightPadding {
delayed: true
value: scrollBar.visible ? 16 : 0
}
Layout.maximumHeight: 108
Layout.fillWidth: true
contentHeight: bioText.height
ScrollBar.vertical: StatusScrollBar {
id: scrollBar
policy: bioText.height > scrollView.availableHeight ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
policy: bioText.height > scrollView.availableHeight
? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
}
StatusBaseText {