update dock geometry in editing mode

pull/1/head
Michail Vourlakos 8 years ago
parent 412fe601c6
commit fb6baeeb71

@ -153,7 +153,7 @@ Item{
adjustPrefix();
}
enabledBorders: dock.enabledBorders
enabledBorders: dock ? dock.enabledBorders : 0
function adjustPrefix() {
if (!plasmoid) {

@ -260,7 +260,7 @@ Item{
maskThickness = maskArea.width;
}
// console.log("Not updating mask...");
// console.log("Not updating mask...");
if( maskArea.x !== localX || maskArea.y !== localY
|| maskLength !== tempLength || maskThickness !== tempThickness) {
@ -283,8 +283,8 @@ Item{
dock.maskArea = newMaskArea;
}
//console.log("update mask area:"+newMaskArea);
if(normalState && !dock.visibility.isHidden){
// console.log("update mask area:"+newMaskArea);
if((normalState && !dock.visibility.isHidden) || root.editMode){
//the shadows size must be removed from the maskArea
//before updating the localDockGeometry
@ -308,7 +308,7 @@ Item{
}
dock.setLocalDockGeometry(newMaskArea);
// console.log("update dock geometry:"+newMaskArea);
// console.log("update dock geometry:"+newMaskArea);
}
}
}

Loading…
Cancel
Save