Fix scrolling of Launcxher FirstRun
Johnathan R pointed out that for wider windows, the button was invisible, fix this will a scrollbar.
This commit is contained in:
parent
f8222da1da
commit
1ef6578ad4
1 changed files with 129 additions and 105 deletions
|
@ -3,10 +3,25 @@ import FlightGear 1.0
|
||||||
import FlightGear.Launcher 1.0
|
import FlightGear.Launcher 1.0
|
||||||
import "."
|
import "."
|
||||||
|
|
||||||
Rectangle {
|
Item {
|
||||||
color: Style.themeColor
|
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: content
|
||||||
|
color: Style.themeColor
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Flickable {
|
||||||
|
id: flick
|
||||||
|
|
||||||
|
contentHeight: textColumn.childrenRect.height + imageClipFrame.height + (Style.strutSize * 2)
|
||||||
|
flickableDirection: Flickable.VerticalFlick
|
||||||
|
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: imageClipFrame
|
id: imageClipFrame
|
||||||
clip: true
|
clip: true
|
||||||
|
@ -59,6 +74,7 @@ Rectangle {
|
||||||
|
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
|
id: textColumn
|
||||||
anchors {
|
anchors {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
|
@ -134,7 +150,15 @@ Rectangle {
|
||||||
}
|
}
|
||||||
} // of column
|
} // of column
|
||||||
|
|
||||||
|
} // of Flickable
|
||||||
|
|
||||||
|
|
||||||
|
Scrollbar {
|
||||||
|
id: scrollbar
|
||||||
|
anchors.right: parent.right
|
||||||
|
height: flick.height
|
||||||
|
flickable: flick
|
||||||
|
visible: flick.contentHeight > flick.height
|
||||||
|
}
|
||||||
|
|
||||||
}
|
} // of Item
|
||||||
|
|
Loading…
Add table
Reference in a new issue