From 2283bb530debdcbe6ac4c544f7920377c1cb01dc Mon Sep 17 00:00:00 2001 From: Diego Prado Gesto Date: Fri, 4 May 2018 15:49:37 +0200 Subject: [PATCH] CURA-4644 Fix unselectable item in the Toolbox --- plugins/Toolbox/resources/qml/ToolboxDownloadsGrid.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Toolbox/resources/qml/ToolboxDownloadsGrid.qml b/plugins/Toolbox/resources/qml/ToolboxDownloadsGrid.qml index 12578d15f6..3dc36db365 100644 --- a/plugins/Toolbox/resources/qml/ToolboxDownloadsGrid.qml +++ b/plugins/Toolbox/resources/qml/ToolboxDownloadsGrid.qml @@ -11,7 +11,7 @@ Column { // HACK: GridLayouts don't render to the correct height with odd numbers of // items, so if odd, add some extra space. - height: grid.model.items.length % 2 == 0 ? childrenRect.height : childrenRect.height + UM.Theme.getSize("toolbox_thumbnail_small").height + height: childrenRect.height width: parent.width spacing: UM.Theme.getSize("default_margin").height Label @@ -36,6 +36,7 @@ Column delegate: ToolboxDownloadsGridTile { Layout.preferredWidth: (grid.width - (grid.columns - 1) * grid.columnSpacing) / grid.columns + Layout.preferredHeight: UM.Theme.getSize("toolbox_thumbnail_small").height } } }