refactor: update ScrollBarType policy to use

`AsNeeded` for better usability
This commit is contained in:
Cyril Anisimov 2025-05-18 22:13:26 +02:00
parent d3715d00ae
commit 3c2dd5c0bd
4 changed files with 3 additions and 4 deletions

View file

@ -13,7 +13,7 @@ import "../Controls2"
import "../Controls2/TextTypes"
ListView {
ListViewType {
id: root
width: parent.width

View file

@ -27,6 +27,5 @@ Flickable {
ScrollBar.vertical: ScrollBarType {
id: scrollBar
policy: fl.height >= fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
}
}

View file

@ -7,5 +7,5 @@ import "../Controls2"
ScrollBar {
id: root
policy: parent.height >= parent.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
policy: ScrollBar.AsNeeded
}

View file

@ -64,7 +64,7 @@ PageType {
displayMarginBeginning: 40
displayMarginEnd: 40
ScrollBar.vertical: ScrollBarType { }
ScrollBar.vertical: ScrollBarType {}
footer: Item {
width: listView.width