Home Forums FlexGanttFX Keep horizontal scrollbar always visible

  • Author
  • Yugo
    Post count: 2
    #13081 |


    How can I keep the horizontal scrollbar always visible? I expected to set some TimelineScrollBar property to achieve it, but couldn’t get succeeded.

    Thanks in advance.

  • Dirk Lemmermann
    Post count: 75
    #13082 |

    The scrollbar gets hidden by a ControlsFX control called “HiddenSidesPane”. It is used inside the GanttChartSkin class.

    final GanttChart gantt = ....
    gantt.skinProperty().addListener(it -> {
        GanttChartSkin skin = (GanttChartSkin) gantt.getSkin();
        HiddenSidesPane pane = skin.getRightHandSide();

    For layout consistency you might want to do the same thing with the left-hand side. Please also notice that the last row of the Gantt chart will be overlapped by the scrollbar. You should always add one blank line to avoid problems.

You must be logged in to reply to this topic.