fix #182,improve automatic shring/grow

--@AndydeCleyre contribution, the automatic growing/
shrinking for applets now uses always the maximum
length as a limit for the calculations
pull/1/head
Michail Vourlakos 8 years ago
parent dcda53d08e
commit ebc70d12b2

@ -959,8 +959,8 @@ DragDrop.DropArea {
layoutsContainer.startLayout.width+layoutsContainer.mainLayout.width+layoutsContainer.endLayout.width : layoutsContainer.mainLayout.width layoutsContainer.startLayout.width+layoutsContainer.mainLayout.width+layoutsContainer.endLayout.width : layoutsContainer.mainLayout.width
} }
var toShrinkLimit = maxLength-(root.zoomFactor*(iconSize+2*iconMargin)); var toShrinkLimit = maxLength-((root.zoomFactor-1)*(iconSize+2*iconMargin));
var toGrowLimit = maxLength-1.5*(root.zoomFactor*(iconSize+2*iconMargin)); var toGrowLimit = maxLength-1.5*((root.zoomFactor-1)*(iconSize+2*iconMargin));
if (layoutLength > toShrinkLimit) { //must shrink if (layoutLength > toShrinkLimit) { //must shrink
// console.log("step3"); // console.log("step3");

Loading…
Cancel
Save