cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Gantt Chart: Legend does not work on first Click

anjana_mehta
Explorer
0 Kudos

In SAP UI5 Gantt Chart app, legend is provided as a default functionality. On first click of legend button, the popup over does not gets open. One has to click the button twice to see the legend box. Does anyone has a quick fix for this? Also the SAP provided examples has the same problem.

Accepted Solutions (1)

Accepted Solutions (1)

iftah_peretz
Active Contributor
0 Kudos

Hi,

I looked into it. From what I saw (was working on this template), is that if you remove the part of building the the legend container in the onInit function, the button then responds (by showing an empty container) on the first click.

The line to remove is this one

oGanttChartContainer.setLegendContainer(that._createLegendContainer()); //Reomve this and the button responds

This indicates that in the building of the HTML inside the legend there is a rendering issue.

I continued some more but with no advancements. Hope this is of some use to you.

Answers (0)