mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 04:41:15 +02:00
Fix scroll bar
This commit is contained in:
parent
50ed9e2b2a
commit
f991379c9c
1 changed files with 10 additions and 2 deletions
|
@ -43,8 +43,8 @@ Window {
|
|||
// type should only consist of logic sized areas, with nothing drawn (although the
|
||||
// default value for the frame property does include visual decorations)
|
||||
property var pane: Item {
|
||||
property bool isScrolling: scrollView.contentChildren.length > 0 ?
|
||||
(scrollView.height < scrollView.contentChildren[0].height) :
|
||||
property bool isScrolling: /*scrollView.contentChildren.length > 0 ?
|
||||
(scrollView.height < scrollView.contentChildren[0].height) :*/
|
||||
false
|
||||
property int contentWidth: scrollView.width - (isScrolling ? 10 : 0)
|
||||
property int scrollHeight: scrollView.height
|
||||
|
@ -86,7 +86,15 @@ Window {
|
|||
anchors.bottomMargin: footerPane.height
|
||||
|
||||
ScrollBar.vertical: ScrollBar {
|
||||
id: control
|
||||
policy: ScrollBar.AsNeeded
|
||||
parent: scrollView
|
||||
x: scrollView.width - width
|
||||
y: scrollView.topPadding
|
||||
height: scrollView.availableHeight
|
||||
active: scrollView.ScrollBar.vertical.active
|
||||
visible: control.size < 1.0
|
||||
|
||||
contentItem: Item {
|
||||
implicitWidth: 8
|
||||
Rectangle {
|
||||
|
|
Loading…
Reference in a new issue