Trees not completely hiding

Issue #147 closed
Robert Leach created an issue

When you select Hide Trees from the View menu, the top of the trees is still visible. I think that the show/hide bar is not getting drawn.

Comments (17)

  1. Robert Leach reporter

    They appear to be hiding, though it looks like the show/hide controls stop working. I'm going to see if I can isolate the circumstances when this happens and create another issue.

  2. Christopher Keil repo owner

    This issue is some JSplitPane problem. I cannot figure it out if my life depended on it... I posted a StackOverflow question with compilable example... (copy the code to a new Eclipse project and add a MigLayout JAR to the build path via Project > Properties > build path > add Jar).

    The divider will always move ~20px when resizing a JSplitPane, even if setResizeWeight() is set to 0.0....

  3. Christopher Keil repo owner

    Putting this on hold for now. This isn't a TreeView specific problem as shown in the sample StackOverflow code.

  4. Robert Leach reporter
    • changed status to open

    Still not completely hiding as of alpha02 release. Can't drag the bar all the way to the top/left.

  5. Christopher Keil repo owner

    One option is to press CMD+T as for now, but this should be fixed. There has still not been any answer to my question on SO despite multiple upvotes.

  6. Christopher Keil repo owner

    I have still not gotten a proper reply to this issue on SO. This has nothing to do with TV3 code either. I made a small program demonstrating this issue to be a general Swing bug. The only way to get rid of this here will be nasty work-arounds.

  7. Christopher Keil repo owner

    This is either impossible or very nasty to directly solve (maybe listen to Window resizes and force a 0-set on the splitpanes - tried this before and this was very unreliable) because it is native JSplitPane behavior.

    Having resizeWeight at the appropriate value (0.0) still doesn't get rid of the behavior.

    But our layout is resolving this issue. It is not occurring anymore because we keep the height/ width for columns/row data panels constant (fixed at about 180px).

    So the JSplitPanes can never resize in the problematic direction and the strange behavior is never even being triggered in the first place.

  8. Robert Leach reporter

    Just fixed this issue more. I enabled the ability to drag the splitpane divider to completely show or completely hide the trees/labels.

  9. Log in to comment