ItEr15S12RFComportamentoGraficoPlanificadorItEr14S13: Fixed vertical positioning and dependencies redrawn bug
This commit is contained in:
parent
5d064e17a6
commit
dafe5b126f
3 changed files with 9 additions and 2 deletions
|
|
@ -78,6 +78,7 @@ public class TaskContainer extends Task implements AfterCompose {
|
|||
container.close();
|
||||
}
|
||||
taskList.hideTask(subtask);
|
||||
taskList.redrawDependencies();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22,7 +22,6 @@ import org.zkoss.ganttz.util.WeakReferencedListeners.ListenerNotification;
|
|||
import org.zkoss.ganttz.util.zoom.ZoomLevel;
|
||||
import org.zkoss.ganttz.util.zoom.ZoomLevelChangedListener;
|
||||
import org.zkoss.zk.au.out.AuInvoke;
|
||||
import org.zkoss.zk.ui.AbstractComponent;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
|
|
@ -253,4 +252,8 @@ public class TaskList extends XulElement implements AfterCompose {
|
|||
subtask.setParent(null);
|
||||
}
|
||||
|
||||
public void redrawDependencies() {
|
||||
getGanttPanel().getDependencyList().redrawDependencies() ;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -46,6 +46,9 @@ zkTask.init = function(cmp) {
|
|||
var dd = zkTask.getDD(cmp);
|
||||
//when the tasks is being dragged the related dependencies are redrawn
|
||||
dd.on('dragEvent',function(ev){
|
||||
// Slight overload. It could be more efficent to overwrite the YUI method
|
||||
// that is setting the top property
|
||||
cmp.style.top = "";
|
||||
if(cmp['relatedDependencies']){
|
||||
for ( var i = 0; i < cmp.relatedDependencies.length; i++) {
|
||||
zkDependency.draw(cmp.relatedDependencies[i]);
|
||||
|
|
@ -81,7 +84,7 @@ zkTask.init = function(cmp) {
|
|||
zkau.send( {
|
||||
uuid : cmp2.id,
|
||||
cmd : "updateProgress",
|
||||
data : [ cmp2.style.width ],
|
||||
data : [ cmp2.style.width ]
|
||||
});
|
||||
}, zkTask, true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue