Fixed issue when the splitter is resized the legend area was not aligned

There is still a minimum width in which the legend is no more resized

FEA: ItEr75S04BugFixing
This commit is contained in:
Lorenzo Tilve Álvaro 2011-10-26 19:51:29 +02:00
parent 5751692b9c
commit c46917ba1c
2 changed files with 7 additions and 3 deletions

View file

@ -528,8 +528,7 @@ public class Planner extends HtmlMacroComponent {
@Override
public void onEvent(Event event) {
Clients.evalJavaScript("zkTaskContainer.legendResize();");
Clients.evalJavaScript("ganttz.TaskList.getInstance().legendResize();");
}
});

View file

@ -20,7 +20,12 @@ ganttz.TaskList = zk.$extends(zk.Widget, {
hideResourceTooltips : function(){
for(var child = this.firstChild; child; child = child.nextSibling)
child.hideResourceTooltip();
},
legendResize : function() {
var taskdetailsContainer = jq('.taskdetailsContainer')[0];
jq('.legend-container').width(taskdetailsContainer.clientWidth-75);
}
},{//Class stuff
setInstance : function(instance){
this.instance = instance;
@ -28,4 +33,4 @@ ganttz.TaskList = zk.$extends(zk.Widget, {
getInstance : function(){
return this.instance;
}
});
});