Change style of tasks that cannot be moved in the Gantt

Set a new class for fixed tasks showing a shadow under the task box and changing
the border color.

FEA: ItEr77S04BugFixing
This commit is contained in:
Manuel Rego Casasnovas 2012-11-15 12:48:29 +01:00
parent 0365b4b031
commit e1fbcd6ac9
2 changed files with 9 additions and 0 deletions

View file

@ -218,6 +218,9 @@ public class TaskComponent extends Div implements AfterCompose {
: ""; : "";
} else { } else {
cssClass += task.isInCriticalPath() ? " critical" : ""; cssClass += task.isInCriticalPath() ? " critical" : "";
if (!task.canBeExplicitlyMoved()) {
cssClass += " fixed";
}
} }
cssClass += " " + task.getAssignedStatus(); cssClass += " " + task.getAssignedStatus();
if (task.isLimiting()) { if (task.isLimiting()) {

View file

@ -155,6 +155,12 @@
z-index : 99 !important; z-index : 99 !important;
} }
/* Fixed box */
.fixed {
box-shadow: 3px 3px 3px #999;
border: #999;
}
/* Task lane properties */ /* Task lane properties */
.row { .row {
height: 12px; height: 12px;