on xenial help sign in
Make changelog scrollable
commitc115db2aac1b381de112e2812a3f7989ff366147 authorDalton Durst <me@daltondurst.com> dateWed 22 Aug 2018, 15:24 (8 years ago) parent3a52557
1 file changed+24−9
qml/Wizard/Pages/11-changelog.qml+24−9
qml/Wizard/Pages/11-changelog.qml+24−9
@@ -30,22 +30,37 @@ LocalComponents.Page {
3030 forwardButtonSourceComponent: forwardButton
3131 onlyOnUpdate: true
3232
33−
34− Column {
35− id: column
36− spacing: units.gu(2)
33+ ScrollView {
34+ id: scroll
3735
3836 anchors {
3937 fill: content
4038 leftMargin: wideMode ? parent.leftMargin : staticMargin
4139 rightMargin: wideMode ? parent.rightMargin : staticMargin
42− topMargin: staticMargin
4340 }
4441
45− Label {
46− width: parent.width
47− wrapMode: Text.WordWrap
48− text: Changelog.text
42+ Column {
43+ id: column
44+
45+ width: scroll.width
46+
47+ // Make it appear that the text is hiding behind the header
48+ Item {
49+ height: staticMargin
50+ width: units.gu(1)
51+ }
52+
53+ Label {
54+ anchors {
55+ // Keep the scroll bar from interfering with text
56+ rightMargin: units.gu(1)
57+ }
58+ id: changelogText
59+ width: parent.width
60+ wrapMode: Text.WordWrap
61+ textSize: Label.Medium
62+ text: Changelog.text
63+ }
4964 }
5065 }
5166