mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-15 21:49:28 +03:00
fixes for !compositing automatic icon size
This commit is contained in:
@ -431,7 +431,10 @@ DragDrop.DropArea {
|
||||
onEditModeChanged: {
|
||||
if (editMode) {
|
||||
visibilityManager.updateMaskArea();
|
||||
} else {
|
||||
updateAutomaticIconSize();
|
||||
}
|
||||
|
||||
updateLayouts();
|
||||
}
|
||||
|
||||
@ -992,11 +995,11 @@ DragDrop.DropArea {
|
||||
startLayout.height+mainLayout.height+endLayout.height : mainLayout.height
|
||||
} else {
|
||||
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 toGrowLimit = maxLength-1.5*(zoomFactor*(iconSize+2*iconMargin));
|
||||
var toShrinkLimit = maxLength-(root.zoomFactor*(iconSize+2*iconMargin));
|
||||
var toGrowLimit = maxLength-1.5*(root.zoomFactor*(iconSize+2*iconMargin));
|
||||
|
||||
if (layoutLength > toShrinkLimit) { //must shrink
|
||||
// console.log("step3");
|
||||
|
Reference in New Issue
Block a user