volumeslider: rework of slider layout 57/22157/1 halibut 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 halibut/8.0.1 halibut/8.0.2 halibut/8.0.3 halibut/8.0.4 halibut/8.0.5 halibut/8.0.6 halibut_8.0.1 halibut_8.0.2 halibut_8.0.3 halibut_8.0.4 halibut_8.0.5 halibut_8.0.6
authorMatt Ranostay <matt.ranostay@konsulko.com>
Mon, 5 Aug 2019 18:48:08 +0000 (11:48 -0700)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 15 Aug 2019 15:57:04 +0000 (15:57 +0000)
To avoid text cutoff switch to ColumnLayout instead of rows.

Bug-AGL: SPEC-2711
Change-Id: I490d0e92d6ed89613d8fc7d983f869ab848e8932
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
(cherry picked from commit cd772d4009778020073318fb8845095aa81c0f8c)

app/VolumeSlider.qml

index b44d74c..b7a98f8 100644 (file)
@@ -2,24 +2,18 @@ import QtQuick 2.6
 import QtQuick.Layouts 1.1
 import QtQuick.Controls 2.0
 
-RowLayout {
+ColumnLayout {
        anchors.left: parent.left
        anchors.right: parent.right
-       Layout.minimumHeight: 75
+       Layout.minimumHeight: 125
 
        Label {
                font.pixelSize: 24
                text: modelData.name
-               Layout.minimumWidth: 150
-               Layout.maximumWidth: 150
-               elide: Text.ElideRight
        }
        Label {
                font.pixelSize: 24
                text: modelData.value + " %"
-               Layout.minimumWidth: 75
-               Layout.maximumWidth: 75
-               elide: Text.ElideRight
        }
        Slider {
                id: roleValueSlider