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

StackPane with padding style

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 2.0
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      Windows 7 x64
      Java(TM) SE Runtime Environment (build 1.6.0_18-b07)

      Description

      There is a little problem on StackPane with padding style :

      <Window maximized="true" xmlns="org.apache.pivot.wtk">
      <content>
      <StackPane styles="

      {padding:15}

      ">
      <Label text="test"/>
      <BoxPane visible="false"/>
      </StackPane>
      </content>
      </Window>

      when you resize the window to hide the StackPane you obtain this error message :

      Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: height is negative.
      at org.apache.pivot.wtk.Component.setSize(Component.java:869)
      at org.apache.pivot.wtk.skin.StackPaneSkin.layout(StackPaneSkin.java:100)
      at org.apache.pivot.wtk.Component.layout(Component.java:1926)
      at org.apache.pivot.wtk.Container.layout(Container.java:323)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.Container.layout(Container.java:327)
      at org.apache.pivot.wtk.Component.validate(Component.java:1917)
      at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:656)
      at java.awt.Component.dispatchEventImpl(Component.java:4630)
      at java.awt.Component.dispatchEvent(Component.java:4460)
      at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
      at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
      at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
      at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

        Attachments

          Activity

            People

            • Assignee:
              tvolkert Todd Volkert
              Reporter:
              dutrieux Duto
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: