Menu ▾ ▴

#312 Bug with treeview "see" command

closed-fixed
tile (215)
5
2012-07-02
2012-05-28
Rich
No

It appears there is a bug in the ttk::treeview "see" command that it does not scroll a child to be visible when it also opens parent nodes.

The attached script demos the effect. it creates a three level nest of nodes, then picks one to "see". The parent nodes are opened properly, but the widget view is not scrolled to bring the selected child into view.

Discussion

  • Rich

    Rich - 2012-05-28
     
  • Rich

    Rich - 2012-05-28

    Ok, that sourcefore button submitted too much.

    The test script exhibits the bug with Linux 8.5.8 and Linux 8.6b2 tclkit as well as Windows 8.5.9 tclkit.

     
  • Joe English

    Joe English - 2012-07-02

    Cause of problem: TreeviewSeeCommand() neglects to update the total #rows when it opens nodes; this can lead to a false positive in the overscroll prevention in TtkScrollTo.

    Fixed now.

     
  • Joe English

    Joe English - 2012-07-02
    • status: open --> closed-fixed
     

Log in to post a comment.