Fix scroll bar

This commit is contained in:
vladest 2017-11-20 17:02:34 +01:00
parent 50ed9e2b2a
commit f991379c9c

View file

@ -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 {