on xenial help sign in
Specify column and row since the gridlayout gets confused sometimes
commit74a27eeeb44c77bb7396dcbe08e17a893f8e462f authorAlbert Astals <albert.astals@canonical.com> dateTue 14 Oct 2014, 17:40 (12 years ago) parent10ac5e3
1 file changed+2
plugins/Dash/CardAttributes.qml+2
plugins/Dash/CardAttributes.qml+2
@@ -41,6 +41,8 @@ GridLayout {
4141 if (column == grid.columns - 1 || index == repeater.count - 1) return Qt.AlignRight;
4242 if (column == 1) return Qt.AlignHCenter;
4343 }
44+ Layout.column: index % grid.columns
45+ Layout.row: index / grid.columns
4446 Layout.columnSpan: index == repeater.count - 1 && grid.columns == 3 && column == 1 ? 2 : 1
4547 Layout.maximumWidth: Math.max(icon.width, label.x + label.implicitWidth)
4648 Layout.fillWidth: true