fix latteApplet size area

--this fixes also showing a wrong context menu
for tasks in zoomed tasks. It was showing instead
of the task context menu the container one.
pull/2/head
Michail Vourlakos 7 years ago
parent b30caca172
commit 8d40678e28

@ -51,9 +51,12 @@ Item{
}
if (container.latteApplet) {
if (container.showZoomed && root.isVertical)
return root.statesLineSize + root.thickMargin + root.iconSize + 1;
else
//! commented because it was breaking the context menu available area, I dont remember where
//! we needed this...
// if (container.showZoomed && root.isVertical)
// return root.statesLineSize + root.thickMargin + root.iconSize + 1;
//else
return latteApplet.tasksWidth;
} else {
return scaledWidth;
@ -80,9 +83,12 @@ Item{
}
if (container.latteApplet) {
if (container.showZoomed && root.isHorizontal)
return root.statesLineSize + root.thickMargin + root.iconSize + 1;
else
//! commented because it was breaking the context menu available area, I dont remember where
//! we needed this...
//if (container.showZoomed && root.isHorizontal)
// return root.statesLineSize + root.thickMargin + root.iconSize + 1;
// else
return latteApplet.tasksHeight;
} else {
return scaledHeight;

Loading…
Cancel
Save