fixes for !compositing automatic icon size

v0.6
Michail Vourlakos 8 years ago
parent 58a3714789
commit 8a60bf7112

@ -431,7 +431,10 @@ DragDrop.DropArea {
onEditModeChanged: { onEditModeChanged: {
if (editMode) { if (editMode) {
visibilityManager.updateMaskArea(); visibilityManager.updateMaskArea();
} else {
updateAutomaticIconSize();
} }
updateLayouts(); updateLayouts();
} }
@ -992,11 +995,11 @@ DragDrop.DropArea {
startLayout.height+mainLayout.height+endLayout.height : mainLayout.height startLayout.height+mainLayout.height+endLayout.height : mainLayout.height
} else { } else {
layoutLength = (plasmoid.configuration.panelPosition === Latte.Dock.Justify) ? layoutLength = (plasmoid.configuration.panelPosition === Latte.Dock.Justify) ?
startLayout.height+mainLayout.width+endLayout.width : mainLayout.width startLayout.width+mainLayout.width+endLayout.width : mainLayout.width
} }
var toShrinkLimit = maxLength-(zoomFactor*(iconSize+2*iconMargin)); var toShrinkLimit = maxLength-(root.zoomFactor*(iconSize+2*iconMargin));
var toGrowLimit = maxLength-1.5*(zoomFactor*(iconSize+2*iconMargin)); var toGrowLimit = maxLength-1.5*(root.zoomFactor*(iconSize+2*iconMargin));
if (layoutLength > toShrinkLimit) { //must shrink if (layoutLength > toShrinkLimit) { //must shrink
// console.log("step3"); // console.log("step3");

Loading…
Cancel
Save