mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-19 06:03:42 +03:00
disable directRendering after automatic icon size
This commit is contained in:
parent
a31940a6fe
commit
7b27dfdf33
@ -1054,6 +1054,7 @@ DragDrop.DropArea {
|
||||
var toShrinkLimit = maxLength-((root.zoomFactor-1)*(iconSize+2*iconMargin));
|
||||
var toGrowLimit = maxLength-1.5*((root.zoomFactor-1)*(iconSize+2*iconMargin));
|
||||
|
||||
var newIconSizeFound = false;
|
||||
if (layoutLength > toShrinkLimit) { //must shrink
|
||||
// console.log("step3");
|
||||
var nextIconSize = root.maxIconSize;
|
||||
@ -1066,6 +1067,7 @@ DragDrop.DropArea {
|
||||
} while ( (nextLength>toShrinkLimit) && (nextIconSize !== 16));
|
||||
|
||||
automaticIconSizeBasedSize = nextIconSize;
|
||||
newIconSizeFound = true;
|
||||
console.log("Step 3 - found:"+automaticIconSizeBasedSize);
|
||||
} else if ((layoutLength<toGrowLimit
|
||||
&& (iconSize === automaticIconSizeBasedSize)) ) { //must grow probably
|
||||
@ -1089,11 +1091,16 @@ DragDrop.DropArea {
|
||||
} else {
|
||||
automaticIconSizeBasedSize = foundGoodSize;
|
||||
}
|
||||
newIconSizeFound = true
|
||||
// console.log("Step 4 - found:"+automaticIconSizeBasedSize);
|
||||
} else {
|
||||
// console.log("Step 4 - did not found...");
|
||||
}
|
||||
}
|
||||
|
||||
if (newIconSizeFound){
|
||||
setGlobalDirectRender(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1200,8 +1207,6 @@ DragDrop.DropArea {
|
||||
root.globalDirectRender = false;
|
||||
}
|
||||
}
|
||||
|
||||
onDockLocationChanged:setGlobalDirectRender(false);
|
||||
}
|
||||
|
||||
Connections{
|
||||
|
Loading…
x
Reference in New Issue
Block a user