|
|
|
@ -261,10 +261,10 @@ Item{
|
|
|
|
|
dock.maskArea = newMaskArea;
|
|
|
|
|
|
|
|
|
|
//console.log("update mask area:"+newMaskArea);
|
|
|
|
|
if((normalState || plasmoid.userConfiguring) && !dock.visibility.isHidden){
|
|
|
|
|
if(normalState && !dock.visibility.isHidden){
|
|
|
|
|
//the shadows size must be removed from the maskArea
|
|
|
|
|
//before updating the localDockGeometry
|
|
|
|
|
if (plasmoid.userConfiguring || (dock.visibility.mode === Latte.Dock.AlwaysVisible) ) {
|
|
|
|
|
|
|
|
|
|
if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
|
|
|
|
|
newMaskArea.width = newMaskArea.width - editModeVisual.shadowSize;
|
|
|
|
|
} else {
|
|
|
|
@ -276,7 +276,6 @@ Item{
|
|
|
|
|
} else if (plasmoid.location === PlasmaCore.Types.RightEdge) {
|
|
|
|
|
newMaskArea.x = newMaskArea.x + editModeVisual.shadowSize;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dock.setLocalDockGeometry(newMaskArea);
|
|
|
|
|
// console.log("update dock geometry:"+newMaskArea);
|
|
|
|
|