You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Greg Brown (JIRA)" <ji...@apache.org> on 2009/08/22 13:45:14 UTC

[jira] Assigned: (PIVOT-237) Possible bug(s) in TerraSplitPaneSkin

     [ https://issues.apache.org/jira/browse/PIVOT-237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Greg Brown reassigned PIVOT-237:
--------------------------------

    Assignee: Niclas Hedhman  (was: Greg Brown)

When I drag the vertical splitter in the Kitchen Sink demo all the way to the bottom, I get this exception:

java.lang.IllegalArgumentException: splitRatio must be between 0 and 1.
	at org.apache.pivot.wtk.SplitPane.setSplitRatio(SplitPane.java:253)


> Possible bug(s) in TerraSplitPaneSkin
> -------------------------------------
>
>                 Key: PIVOT-237
>                 URL: https://issues.apache.org/jira/browse/PIVOT-237
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>            Reporter: Greg Brown
>            Assignee: Niclas Hedhman
>            Priority: Minor
>             Fix For: 1.3
>
>         Attachments: BugFixSplitPane.patch
>
>
> In TerraSplitPaneSkin, I am wondering if line 505 should read:
>     int minimumChildSize = splitPane.getTop().getMinimumPreferredHeight();
> rather than:
>     int minimumChildSize = splitPane.getBottom().getMinimumPreferredHeight();
> I'm only asking because, as written, it doesn't have parity with lines 498 and 500 - should it?
> Also, it seems like we might want to gracefully handle null values for top/left/bottom/right here. Currently, if any of them are undefined, we'll get an NPE.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.