Skip to Content
avatar image
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 18, 2017 at 08:21 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded