diff --git a/containment/contents/ui/main.qml b/containment/contents/ui/main.qml index 3303b0236..7ae11cc92 100644 --- a/containment/contents/ui/main.qml +++ b/containment/contents/ui/main.qml @@ -481,6 +481,11 @@ DragDrop.DropArea { plasmoid.processMimeData(event.mimeData, relevantLayout.x, relevantLayout.y); event.accept(event.proposedAction); + if (confirmedDragEntered) { + slotAnimationsNeedLength(-1); + confirmedDragEntered = false; + } + dndSpacer.opacity = 0; dndSpacer.parent = root; } @@ -504,6 +509,8 @@ DragDrop.DropArea { } } + onIconSizeChanged: visibilityManager.updateMaskArea(); + // onIconSizeChanged: console.log("Icon Size Changed:"+iconSize); Component.onCompleted: { @@ -872,11 +879,13 @@ DragDrop.DropArea { } function updateAutomaticIconSize() { - if (visibilityManager.normalState //&& !root.editMode + + if ((visibilityManager.normalState || root.editMode) && (iconSize===plasmoid.configuration.iconSize || iconSize === automaticIconSizeBasedSize) ) { var layoutLength; var maxLength = dock.maxLength; - // console.log("------Entered check-----"); + //console.log("------Entered check-----"); + //console.log("max length: "+ maxLength); if (root.isVertical) { layoutLength = (plasmoid.configuration.panelPosition === Latte.Dock.Justify) ? @@ -901,10 +910,10 @@ DragDrop.DropArea { } while ( (nextLength>toShrinkLimit) && (nextIconSize !== 16)); automaticIconSizeBasedSize = nextIconSize; - // console.log("Step 3 - found:"+automaticIconSizeBasedSize); + console.log("Step 3 - found:"+automaticIconSizeBasedSize); } else if ((layoutLength= dock.maxLength)) { + if (root.isHorizontal + && ( (dock && (width+secondLayout.width >= dock.maxLength)) + || (root.editMode)) ){ updateAutomaticIconSize(); } } onHeightChanged: { - if (root.isVertical && dock && (height+secondLayout.height >= dock.maxLength)) { + if (root.isVertical + && ( (dock && (height+secondLayout.height >= dock.maxLength)) + || (root.editMode)) ){ updateAutomaticIconSize(); } }