mirror of
https://github.com/KDE/latte-dock.git
synced 2025-01-10 09:18:13 +03:00
dont show fill(s) applets oversized in edit mode
This commit is contained in:
parent
c19bb3fa99
commit
d190ebb216
@ -49,11 +49,7 @@ Item{
|
|||||||
var constrainedWidth = container.sizeForFill>-1 ? Math.min(container.sizeForFill, applet.Layout.preferredWidth) :
|
var constrainedWidth = container.sizeForFill>-1 ? Math.min(container.sizeForFill, applet.Layout.preferredWidth) :
|
||||||
applet.Layout.preferredWidth;
|
applet.Layout.preferredWidth;
|
||||||
|
|
||||||
if (root.editMode) {
|
return root.editMode ? Math.max(constrainedWidth, root.iconSize) : constrainedWidth;
|
||||||
return Math.max(constrainedWidth, 5 * root.iconSize);
|
|
||||||
} else {
|
|
||||||
return Math.max(constrainedWidth, root.iconSize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if((container.sizeForFill>-1) && root.isHorizontal){
|
if((container.sizeForFill>-1) && root.isHorizontal){
|
||||||
@ -91,11 +87,7 @@ Item{
|
|||||||
var constrainedHeight = container.sizeForFill>-1 ? Math.min(container.sizeForFill, applet.Layout.preferredHeight) :
|
var constrainedHeight = container.sizeForFill>-1 ? Math.min(container.sizeForFill, applet.Layout.preferredHeight) :
|
||||||
applet.Layout.preferredHeight;
|
applet.Layout.preferredHeight;
|
||||||
|
|
||||||
if (root.editMode) {
|
return root.editMode ? Math.max(constrainedHeight, root.iconSize) : constrainedHeight;
|
||||||
return Math.max(constrainedHeight, 5 * root.iconSize);
|
|
||||||
} else {
|
|
||||||
return Math.max(constrainedHeight, root.iconSize);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((container.sizeForFill>-1) && root.isVertical){
|
if ((container.sizeForFill>-1) && root.isVertical){
|
||||||
|
Loading…
Reference in New Issue
Block a user