@@ -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(9);
370− cardTool.cardWidth = units.gu(10);
373− cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
374 item.artShapeStyle = "icon";
366 item.artShapeStyle = "icon";
376 // Should be ubuntu store icon
368 // Should be ubuntu store icon
@@ -387,6 +379,21 @@ FocusScope {
382+ function clickScopeSizingHacks() {
383+ if (scope && scope.id === "clickscope" &&
384+ (categoryId === "predefined" || categoryId === "local")) {
386+ if (scopeView.width > units.gu(45)) {
387+ if (scopeView.width >= units.gu(70)) {
388+ cardTool.cardWidth = units.gu(9);
390+ cardTool.cardWidth = units.gu(10);
393+ cardTool.artShapeSize = Qt.size(units.gu(8), units.gu(7.5));
390 Connections {
397 Connections {
391 target: rendererLoader.item
398 target: rendererLoader.item
392 onClicked: { // (int index, var result, var item, var itemModel)
399 onClicked: { // (int index, var result, var item, var itemModel)
@@ -416,6 +423,7 @@ FocusScope {
416 target: scopeView
423 target: scopeView
417 onIsCurrentChanged: rendererLoader.updateRanges();
424 onIsCurrentChanged: rendererLoader.updateRanges();
418 onVisibleToParentChanged: rendererLoader.updateRanges();
425 onVisibleToParentChanged: rendererLoader.updateRanges();
426+ onWidthChanged: rendererLoader.clickScopeSizingHacks();
420 Connections {
428 Connections {
421 target: holdingList
429 target: holdingList