Home Forums FlexGanttFX Keep horizontal scrollbar always visible

Viewing 1 reply thread
  • 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: 69
      #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.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.