Hi Shyam,
This does not seem to work.
See the attached screenshot.
The vertical lane seems to be fine; just the horzontal.
Here's a snippet of code from my nodeCollectioChangeHandler:
... } else if (args.changeType == "insert" && args.element && args.element.isLane) {
var lane = args.element;
if (lane.orientation == "horizontal") {
lane.minHeight = 120;
lane.minWidth = 550;
lane.header.width = 110; // Ensure a wider label so it doesn't wrap (default = 30)
lane.header.height = 40;
lane.header.fontSize = 12;
}
if (lane.orientation == "vertical") {
lane.minHeight = 550;
lane.minWidth = 250;
lane.header.width = 240; // Ensure a wider label so it doesn't wrap (default = 30)
lane.header.height = 40;
lane.header.fontSize = 12;
}
diagram.updateNode(lane.name, {});
} else if ...
If a interrogate the lane.header.width in the selectionChangeHandler (when I click on it) - it shows 60 ???
What am I doing wrong?
Thanks
Jim
Attachment:
Syncfusion__Lane_Header_Label_Width__24aug2015_1cbe228b.zip