Home Forums FlexGanttFX Keep horizontal scrollbar always visible

Viewing 1 reply thread
  • Author
    Posts
    • Yugo
      Participant
      Post count: 2
      #13081 |

      Hello!

      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
      Keymaster
      Post count: 78
      #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();
          pane.setPinnedSide(Side.BOTTOM);
      });
      

      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.