on xenial help sign in
better width setting
commit18d7b5e22015263cddc0d40b0171c6194e405d13 authorAlbert Astals <albert.astals@canonical.com> dateThu 6 Feb 2014, 18:46 (13 years ago) parent65c9573
1 file changed+1−1
qml/Dash/Previews/PreviewActions.qml+1−1
qml/Dash/Previews/PreviewActions.qml+1−1
@@ -39,13 +39,13 @@ PreviewWidget {
3939 readonly property bool button: row.actions && row.actions.length == 2
4040 readonly property bool combo: row.actions && row.actions.length > 2
4141 source: button ? "PreviewActionButton.qml" : (combo ? "PreviewActionCombo.qml" : "")
42+ width: (root.width - units.gu(1)) / 2
4243 onLoaded: {
4344 if (button) {
4445 item.data = row.actions[1];
4546 } else if (combo) {
4647 item.model = row.actions.slice(1);
4748 }
48− item.width = Qt.binding(function() { return (root.width - units.gu(1)) / 2; });
4949 }
5050 Connections {
5151 target: loader.item