Show Scrollbars whenever the scroll is not obvious
This commit is contained in:
parent
7345f464a5
commit
9222877306
3 changed files with 13 additions and 3 deletions
|
@ -29,7 +29,7 @@ PageBase {
|
||||||
anchors.left: root.left
|
anchors.left: root.left
|
||||||
anchors.leftMargin: 30
|
anchors.leftMargin: 30
|
||||||
anchors.right: root.right
|
anchors.right: root.right
|
||||||
anchors.rightMargin: 30
|
anchors.rightMargin: 15
|
||||||
|
|
||||||
contentHeight: content.height
|
contentHeight: content.height
|
||||||
clip: true
|
clip: true
|
||||||
|
@ -40,6 +40,7 @@ PageBase {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 15
|
||||||
|
|
||||||
CheckBoxType {
|
CheckBoxType {
|
||||||
visible: !GC.isMobile()
|
visible: !GC.isMobile()
|
||||||
|
@ -161,6 +162,10 @@ PageBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
policy: fl.height > content.height? ScrollBar.AlwaysOff : ScrollBar.AlwaysOn
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Logo {
|
Logo {
|
||||||
|
|
|
@ -38,7 +38,7 @@ PageBase {
|
||||||
x: 20
|
x: 20
|
||||||
anchors.top: caption.bottom
|
anchors.top: caption.bottom
|
||||||
anchors.topMargin: 15
|
anchors.topMargin: 15
|
||||||
width: parent.width
|
width: parent.width - 30
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: 20
|
anchors.bottomMargin: 20
|
||||||
model: ServerListLogic.serverListModel
|
model: ServerListLogic.serverListModel
|
||||||
|
@ -49,7 +49,7 @@ PageBase {
|
||||||
clip: true
|
clip: true
|
||||||
delegate: Item {
|
delegate: Item {
|
||||||
height: 60
|
height: 60
|
||||||
width: root.width - 40
|
width: listWidget_servers.width - 15
|
||||||
MouseArea {
|
MouseArea {
|
||||||
id: ms
|
id: ms
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
@ -174,5 +174,9 @@ PageBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ScrollBar.vertical: ScrollBar {
|
||||||
|
policy: ScrollBar.AlwaysOn
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,6 +34,7 @@ PageBase {
|
||||||
anchors.top: caption.bottom
|
anchors.top: caption.bottom
|
||||||
anchors.bottom: root.bottom
|
anchors.bottom: root.bottom
|
||||||
contentHeight: col.height
|
contentHeight: col.height
|
||||||
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: col
|
id: col
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue