Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.