make sure horiz scrollbar is off when not needed

size the page correctly to not have the horizontal
scrollbar when not needed, and make sure the flickable
is not interactive, as flicking is managed by hand
with a mousearea
frameworks
Marco Martin 10 years ago
parent eb1f73800e
commit 6fe6e884d1
  1. 12
      mobile/components/DocumentView.qml

@ -34,13 +34,15 @@ QtControls.ScrollView {
property PageItem page: mouseArea.currPageDelegate.pageItem property PageItem page: mouseArea.currPageDelegate.pageItem
signal clicked signal clicked
onWidthChanged: resizeTimer.restart() //NOTE: on some themes it tries to set the flickable to interactive
onHeightChanged: resizeTimer.restart() //but we need it always non interactive as we need to manage
//dragging by ourselves
Component.onCompleted: flick.interactive = false
Flickable { Flickable {
id: flick id: flick
anchors.fill: parent interactive: false
onWidthChanged: resizeTimer.restart()
clip: true onHeightChanged: resizeTimer.restart()
Component.onCompleted: { Component.onCompleted: {
flick.contentWidth = flick.width flick.contentWidth = flick.width

Loading…
Cancel
Save