StackPane with padding style ---------------------------- Key: PIVOT-597 URL: https://issues.apache.org/jira/browse/PIVOT-597 Project: Pivot Issue Type: Bug Components: wtk Affects Versions: 1.5 Environment: Windows 7 x64 Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Reporter: dutrieux Priority: Minor
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) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.