pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Brown <gkbr...@mac.com>
Subject Re:
Date Mon, 25 Oct 2010 11:25:52 GMT
Can you provide a small code sample that demonstrates the problem? Thanks.
G

On Oct 25, 2010, at 3:25 AM, Jérôme Serré wrote:

> Hello,
> 
> Creating Dynamics and views "TablePane.
> 
> When I created a TablePane and that I display in a scrollpane by the time I
> have the following error:
> 
> Exception in thread "AWT-EventQueue-3" java.lang.IllegalArgumentException:
> end (163) is less than value (89) + extent (163)
> 
>                        at
> org.apache.pivot.wtk.ScrollBar.setScope(ScrollBar.java:257)
> 
>                        at
> org.apache.pivot.wtk.skin.ScrollPaneSkin.layoutHelper(ScrollPaneSkin.java:83
> 2)
> 
>                        at
> org.apache.pivot.wtk.skin.ScrollPaneSkin.layout(ScrollPaneSkin.java:572)
> 
>                        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.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.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.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.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(Application
> Context.java:656)
> 
>                        at java.awt.Component.dispatchEventImpl(Unknown
> Source)
> 
>                        at java.awt.Component.dispatchEvent(Unknown Source)
> 
>                        at java.awt.EventQueue.dispatchEvent(Unknown Source)
> 
>                        at
> java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
> 
>                        at
> java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
> 
>                        at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
> 
>                        at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
> 
>                        at java.awt.EventDispatchThread.pumpEvents(Unknown
> Source)
> 
>                        at java.awt.EventDispatchThread.run(Unknown Source)
> 
> 
> 
> Apparently when the previous vertical scrollbar is displayed and positioned
> at a certain height that creates the error.
> To remedy this I have to move the vertical scrollbar sc.setScrollTop(0); to
> 0  before displaying the next "tablepane" and it works.
> 
> Is this a bug or bad use of my hand?
> 
> 
> 
> Thanks
> 
> 
> 
> --
> 
> Cordialement
> 
> Jérôme Serré
> 
> 
> 
> 


Mime
View raw message