Skip to content

Commit 24fb38c

Browse files
authored
fluent: Fix ScrollView scroll bars to adjust to each other's visibility (#10126)
Same way they already do in cosmic and cupertino styles.
1 parent feecce7 commit 24fb38c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/compiler/widgets/fluent/scrollview.slint

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export component ScrollView {
186186
width: 14px;
187187
x: flickable.width + flickable.x - self.width;
188188
y: flickable.y;
189-
height: flickable.height - horizontal-bar.height;
189+
height: horizontal-bar.visible ? parent.height - horizontal-bar.height : parent.height;
190190
horizontal: false;
191191
maximum: flickable.viewport-height - flickable.height;
192192
page-size: flickable.height;
@@ -196,7 +196,7 @@ export component ScrollView {
196196

197197
horizontal-bar := ScrollBar {
198198
enabled: root.enabled;
199-
width: flickable.width - vertical-bar.width;
199+
width: vertical-bar.visible ? parent.width - vertical-bar.width : parent.width;
200200
height: 14px;
201201
y: flickable.height + flickable.y - self.height;
202202
x: flickable.x;

0 commit comments

Comments
 (0)