ItEr29S12CUVisualizacionModelosPlanificacionItEr28S15: Added drag padding to create dependencies toward milestones

This commit is contained in:
Lorenzo Tilve 2009-10-09 10:44:04 +02:00 committed by Javier Moran Rua
parent 90afb1c903
commit 844de0773a
2 changed files with 20 additions and 13 deletions

View file

@ -43,6 +43,9 @@ FOOTER_HEIGHT = 40; // Design-relative footer height
SCROLLBAR_WIDTH = 15; // Scrollbars default width
DRAGABLE_PADDING = 20; // Drag padding for dependency creation
zkTasklist.tooltipTimeout = "";
@ -474,8 +477,9 @@ zkTask.isOverTask = function(cmp, arrow) {
for ( var i = 0; i < arrayTasks.length; i++) {
var task = arrayTasks[i];
if (((xpos) > (task.offsetLeft))
&& ((xpos) < (task.offsetLeft + task.offsetWidth))
/* Added margins to pointing errors */
if (((xpos) > (task.offsetLeft - DRAGABLE_PADDING))
&& ((xpos) < (task.offsetLeft + task.offsetWidth + DRAGABLE_PADDING))
&& (ypos > (task.offsetTop))
&& (ypos < (task.offsetTop + task.offsetHeight))) {
return task;

View file

@ -7,22 +7,25 @@
* if needed within the scheduler.
*/
The next constants are used within the planner styling:
/*
The next constants are used within the planner styling:
Ganntz.ListdetailsWidth = 280
Ganntz.ListdetailsWidth = 280
zkTasklist.HEIGHT_PER_TASK = 10
zkTasklist.HEIGHT_PER_ROW = 15
zkTasklist.HEIGHT_TIME_TRACKER = 120
zkTasklist.HEIGHT_PER_TASK = 10
zkTasklist.HEIGHT_PER_ROW = 15
zkTasklist.HEIGHT_TIME_TRACKER = 120
zkTasklist.SCROLLBAR_WIDTH = 15
zkTasklist.SCROLLBAR_WIDTH = 15
zkTasklist.SCROLL_CONTAINER_INITIAL_HEIGHT = 500
zkTasklist.SCROLL_CONTAINER_INITIAL_WIDTH = 600
zkTasklist.SCROLL_CONTAINER_INITIAL_HEIGHT = 500
zkTasklist.SCROLL_CONTAINER_INITIAL_WIDTH = 600
zkTasklist.GANTT_PANEL_LEFT = 300
zkTasklist.GANTT_PANEL_LEFT = 300
*/ /* -------------- Listdetails -------------- */
*/
/* -------------- Listdetails -------------- */
/* External listdetails box */
.listdetails {
margin-top: 0px;
@ -213,7 +216,7 @@ min-width:200px;
float: right;
position:relative;
left: 7px;
top: -13px;
top: -12px;
}
.row .closed {