1
0
Fork 0

Launcher: Fix scrollbar for next

This commit is contained in:
James Turner 2020-10-29 21:12:36 +00:00
parent 0dfdf63399
commit 4075ea02e9
3 changed files with 11 additions and 18 deletions

View file

@ -1,4 +1,6 @@
import QtQuick 2.4 import QtQuick 2.4
import QtQuick.Controls 2.2
import FlightGear 1.0 import FlightGear 1.0
import FlightGear.Launcher 1.0 import FlightGear.Launcher 1.0
import "." import "."
@ -19,6 +21,8 @@ Item {
contentHeight: textColumn.childrenRect.height + imageClipFrame.height + (Style.strutSize * 2) contentHeight: textColumn.childrenRect.height + imageClipFrame.height + (Style.strutSize * 2)
flickableDirection: Flickable.VerticalFlick flickableDirection: Flickable.VerticalFlick
ScrollBar.vertical: ScrollBar {}
anchors.fill: parent anchors.fill: parent
@ -151,13 +155,4 @@ Item {
} // of Flickable } // of Flickable
Scrollbar {
id: scrollbar
anchors.right: parent.right
height: flick.height
flickable: flick
visible: flick.contentHeight > flick.height
}
} // of Item } // of Item

View file

@ -1,4 +1,6 @@
import QtQuick 2.4 import QtQuick 2.4
import QtQuick.Controls 2.2
import FlightGear.Launcher 1.0 import FlightGear.Launcher 1.0
import "." import "."
@ -17,9 +19,10 @@ Item {
contentHeight: contentColumn.childrenRect.height contentHeight: contentColumn.childrenRect.height
flickableDirection: Flickable.VerticalFlick flickableDirection: Flickable.VerticalFlick
height: parent.height height: parent.height
width: parent.width - (Style.strutSize * 4 + scrollbar.width) width: parent.width - (Style.strutSize * 4)
x: Style.strutSize * 2 x: Style.strutSize * 2
y: Style.strutSize y: Style.strutSize
ScrollBar.vertical: ScrollBar {}
Column { Column {
id: contentColumn id: contentColumn
@ -83,12 +86,4 @@ Item {
} }
} // of flickable } // of flickable
Scrollbar {
id: scrollbar
anchors.right: parent.right
height: flick.height
flickable: flick
visible: flick.contentHeight > flick.height
}
} }

View file

@ -1,4 +1,6 @@
import QtQuick 2.4 import QtQuick 2.4
import QtQuick.Controls 2.2
import FlightGear 1.0 import FlightGear 1.0
import FlightGear.Launcher 1.0 import FlightGear.Launcher 1.0
import "." import "."
@ -271,6 +273,7 @@ Item {
model: root.locationModel model: root.locationModel
delegate: locationSearchDelegate delegate: locationSearchDelegate
clip: true clip: true
ScrollBar.vertical: ScrollBar {}
header: Item { header: Item {
visible: !root.showCarriers && _location.searchModel.isSearchActive visible: !root.showCarriers && _location.searchModel.isSearchActive