diff options
author | Nils Jeisecke <jeisecke@saltation.de> | 2012-08-06 10:49:16 +0200 |
---|---|---|
committer | Jens Bache-Wiig <jens.bache-wiig@digia.com> | 2012-11-09 11:31:24 +0100 |
commit | 29acf8f089946a68356486318415fec5608c7be1 (patch) | |
tree | 2bd202ca52bf78bc4df6645c12e1919abe6d32bf | |
parent | a668fdd8d095be0a0731fced2f8fe9dd4c539a27 (diff) | |
download | qtquickcontrols-29acf8f089946a68356486318415fec5608c7be1.tar.gz |
Fix vertical scrolling in TableView on the Mac
On the mac the vertical scrollbar is anchored below the header.
Prior to this change the last item of the list was not accessible
by scrolling.
Change-Id: I9ee47bbeba77fc5d862194ba93e56c891908c397
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
-rw-r--r-- | imports/QtDesktop/private/ScrollAreaHelper.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/imports/QtDesktop/private/ScrollAreaHelper.qml b/imports/QtDesktop/private/ScrollAreaHelper.qml index 0a3ace1f..409fa49b 100644 --- a/imports/QtDesktop/private/ScrollAreaHelper.qml +++ b/imports/QtDesktop/private/ScrollAreaHelper.qml @@ -48,8 +48,8 @@ WheelArea { property alias verticalScrollBar: vscrollbar property int macOffset: frame && styleitem.style === "mac" ? 1 : 0 property bool blockUpdates: false - property int availableHeight : root.height - (hscrollbar.visible ? hscrollbar.height : 0) - property int availableWidth: root.width - vscrollbar.width + property int availableHeight : height - (hscrollbar.visible ? hscrollbar.height : 0) + property int availableWidth: width - vscrollbar.width anchors.fill: parent anchors.margins: frameWidth |