refactor: update ScrollBarType
policy to use
`AsNeeded` for better usability
This commit is contained in:
parent
d3715d00ae
commit
3c2dd5c0bd
4 changed files with 3 additions and 4 deletions
|
@ -13,7 +13,7 @@ import "../Controls2"
|
|||
import "../Controls2/TextTypes"
|
||||
|
||||
|
||||
ListView {
|
||||
ListViewType {
|
||||
id: root
|
||||
|
||||
width: parent.width
|
||||
|
|
|
@ -27,6 +27,5 @@ Flickable {
|
|||
|
||||
ScrollBar.vertical: ScrollBarType {
|
||||
id: scrollBar
|
||||
policy: fl.height >= fl.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,5 +7,5 @@ import "../Controls2"
|
|||
ScrollBar {
|
||||
id: root
|
||||
|
||||
policy: parent.height >= parent.contentHeight ? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
||||
policy: ScrollBar.AsNeeded
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ PageType {
|
|||
displayMarginBeginning: 40
|
||||
displayMarginEnd: 40
|
||||
|
||||
ScrollBar.vertical: ScrollBarType { }
|
||||
ScrollBar.vertical: ScrollBarType {}
|
||||
|
||||
footer: Item {
|
||||
width: listView.width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue