Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-417

TerraTreeViewSkin throws exception when its container's width is so narrow that the node is mostly clipped.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • wtk-terra
    • None
    • Windows 7, JDK 1.7.0 64-bit

    Description

      I placed a tree view in the left pane of a split pane. When I resize the tree view's split pane down to the point that the tree view is almost not visible (perhaps the icon but not the text), the tree view starts throwing exceptions:

      Exception thrown during paint(): java.lang.IllegalArgumentException: width is negative.
      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: width is negative.
      at org.apache.pivot.wtk.Component.setSize(Unknown Source)
      at org.apache.pivot.wtk.content.TreeViewNodeRenderer.setSize(Unknown Source)
      at org.apache.pivot.wtk.skin.terra.TerraTreeViewSkin.paint(Unknown Source)
      ....

      Attachments

        Activity

          People

            tvolkert Todd Volkert
            sbaxter Scott Baxter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: