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

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: wtk-terra
    • Labels:
      None
    • Environment:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: