[Bug #1127] Fixed dependencies in limiting resources

FEA: ItEr75S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-09-30 12:19:16 +02:00
parent d3b4bbea86
commit 22a2bb943e
2 changed files with 27 additions and 25 deletions

View file

@ -85,20 +85,17 @@ limitingresources.LimitingDependencyComponent = zk.$extends(ganttz.DependencyCom
// --------- Arrow -----------
var deparrow = this._findImageElement('arrow');
var deparrowstyle = {};
var deparrowsrc;
deparrowstyle.left = ( xend - this.$class.HALF_ARROW_PADDING ) + "px";
if (yend > yorig) {
deparrowsrc = this.getImagesDir()+"arrow2.png";
deparrow.removeClass("point-north");
deparrow.addClass("point-south");
deparrowstyle.top = ( yend - this.$class.ARROW_PADDING ) + "px";
} else if (yend == yorig) {
deparrowsrc = this.getImagesDir()+"arrow4.png";
deparrowstyle.top = yorig + "px";
} else if (yend < yorig) {
deparrowsrc = this.getImagesDir()+"arrow4.png";
} else {
deparrow.removeClass("point-south");
deparrow.addClass("point-north");
deparrowstyle.top = yend + "px";
}
deparrow.css(deparrowstyle);
deparrow.attr('src',deparrowsrc);
},
findPos_ : function(element){
var pos1 = jq('#listlimitingdependencies').offset();

View file

@ -235,14 +235,17 @@
}
#ganttpanel .end,
#ganttpanel .start {
#ganttpanel .start,
#listlimitingdependencies .mid {
height: 1px;
padding: 4px 0 2px 1px;
margin-left: 4px;
background-position: 0px 2px;
}
#ganttpanel .mid {
#ganttpanel .mid,
#listlimitingdependencies .start,
#listlimitingdependencies .end {
width: 1px;
margin-top: 3px;
margin-bottom: 2px;
@ -262,19 +265,6 @@
cursor: default;
}
#listlimitingdependencies .end,
#listlimitingdependencies .start {
width: 1px;
}
#listlimitingdependencies .mid {
height: 1px;
}
#listlimitingdependencies .arrow {
background-image: none;
padding:0px;
}
div.box.limiting-assigned {
background-color: #61b598; /* LIMITING_RESOURCES_DARK_GREEN */
-moz-border-radius: 15px;
@ -1289,13 +1279,15 @@ div.z-grid-header .second_level_ tr {
}
.start, .end {
#ganttpanel .start, #ganttpanel .end,
#listlimitingdependencies .mid {
background-image:
url("../../zkau/web/ganttz/img/solid-black-hor.png");
background-repeat:repeat-x;
}
.mid {
#ganttpanel .mid,
#listlimitingdependencies .start, #listlimitingdependencies .end {
background-image:
url("../../zkau/web/ganttz/img/solid-black-ver.png");
background-repeat:repeat-y;
@ -1344,3 +1336,16 @@ div.z-grid-header .second_level_ tr {
.point-north {
background-position: -48px 0;
}
#listlimitingdependencies .point-north {
background-position: -53px 0;
}
#listlimitingdependencies .point-south {
background-position: -17px 0;
margin-top: 2px;
}
.taskspanelgap #listlimitingdependencies {
top: -2px;
}