pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duto <olivier.dutri...@pasteur.fr>
Subject Problem on StackPane with padding style
Date Thu, 12 Aug 2010 18:36:20 GMT

Hello,

I remark a litle problem on StackPane with padding style : 

Sample : 

<Window maximized="true" xmlns="org.apache.pivot.wtk">
    <content>
        <StackPane styles="{padding:15}">
            <Label text="test"/>
            <BoxPane visible="false"/>
        </StackPane>
    </content>
</Window>

If 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)

Note : tested with v1.5.0

Best regards

Duto
-- 
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/Problem-on-StackPane-with-padding-style-tp1118139p1118139.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Mime
View raw message