Home Forums FlexGanttFX set divider between TreeTable and Graphic

Tagged: 

Viewing 1 reply thread
  • Author
    Posts
    • Martin
      Participant
      Post count: 10
      #13660 |

      I have a couple of columns in TreeTable. How can I control the divider between TreeTable and Graphic (I want to show all coulumns in TreeTable)?

    • Dirk Lemmermann
      Keymaster
      Post count: 78
      #13661 |

      The divider is provided by the underlying MasterDetailPane (a ControlsFX control that extends SplitPane). The MasterDetailPane allows you to set the position based on a value between 0 and 1. So you need to compute the preferred width of the tree table and set it in relationship to the entire width of the Gantt chart. This is the value of the divider position. E.g. the preferred width of the table is 500 pixels and the current width of the Gantt chart is 1000. Then you should call gantt.getTreeTableMasterDetailPane().setDividerPosition(.5).

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