@@ -360,17 +360,9 @@ FocusScope {
360 baseItem.expand(shouldExpand, false /*animate*/);
360 baseItem.expand(shouldExpand, false /*animate*/);
362 updateRanges();
362 updateRanges();
363+ clickScopeSizingHacks();
363 if (scope && scope.id === "clickscope") {
364 if (scope && scope.id === "clickscope") {
364 if (categoryId === "predefined" || categoryId === "local") {
365 if (categoryId === "predefined" || categoryId === "local") {
366− if (scopeView.width > units.gu(45)) {
367− if (scopeView.width >= units.gu(70)) {
368− cardTool.cardWidth = units.gu(11);
369− item.minimumHorizontalSpacing = units.gu(5)
371− cardTool.cardWidth = units.gu(10);
374 cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
366 cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
375 item.artShapeStyle = "icon";
367 item.artShapeStyle = "icon";
@@ -388,6 +380,23 @@ FocusScope {
383+ function clickScopeSizingHacks() {
384+ if (scope && scope.id === "clickscope" &&
385+ (categoryId === "predefined" || categoryId === "local")) {
387+ if (scopeView.width > units.gu(45)) {
388+ if (scopeView.width >= units.gu(70)) {
389+ cardTool.cardWidth = units.gu(11);
390+ item.minimumHorizontalSpacing = units.gu(5);
393+ cardTool.cardWidth = units.gu(10);
396+ item.minimumHorizontalSpacing = item.defaultMinimumHorizontalSpacing;
391 Connections {
400 Connections {
392 target: rendererLoader.item
401 target: rendererLoader.item
393 onClicked: { // (int index, var result, var item, var itemModel)
402 onClicked: { // (int index, var result, var item, var itemModel)
@@ -417,6 +426,7 @@ FocusScope {
417 target: scopeView
426 target: scopeView
418 onIsCurrentChanged: rendererLoader.updateRanges();
427 onIsCurrentChanged: rendererLoader.updateRanges();
419 onVisibleToParentChanged: rendererLoader.updateRanges();
428 onVisibleToParentChanged: rendererLoader.updateRanges();
429+ onWidthChanged: rendererLoader.clickScopeSizingHacks();
421 Connections {
431 Connections {
422 target: holdingList
432 target: holdingList