I have a panel with an itemTemplate and itemArray defined. The panel is placed in a go.Spot Panel:
const panel = new go.Panel(go.Panel.Spot);
panel.itemTemplate = this.createDurationTextPanel();
panel.itemArray = segments;
The itemTemplate defined a Panel which is placed using go.Spot alignment:
private createDurationTextPanel() {
const textPanel = new go.Panel();
textPanel.bind(
new go.Binding("alignment", "", (panel: go.Panel) => {
return new go.Spot(0, 1, someCalculatedOffsetA, someCalculatedOffsetB);
}).ofObject());
const textBlock = new go.TextBlock().bind("text", "",
(segment) => this.getDurationText(segment));
textPanel.add(textBlock);
return textPanel;
}
This worked fine until goJS 3.0.16:
It doesn’t work anymore since goJS 3.0.17 (also checked with latest 3.0.19):
The alignment binding works (I can see that if I add some static text to the TextBlock).
The text binding is evaluated and returns a value (verified through debugging), but the text are not displayed anymore:
Any ideas?