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

Todd Volkert resolved PIVOT-236.
--------------------------------

    Resolution: Fixed

Marking as fixed since the code is already checked in - this ticket is for 
book-keeping purposes.

> SplitPane's splitLocation(int) property should be splitRatio(float)
> -------------------------------------------------------------------
>
>                 Key: PIVOT-236
>                 URL: https://issues.apache.org/jira/browse/PIVOT-236
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>            Reporter: Todd Volkert
>            Assignee: Niclas Hedhman
>             Fix For: 1.3
>
>
> Currently, the splitLocation property of SplitPane specifies the absolute 
> pixel value of the splitter within the split pane.  This would be much more 
> useful to applications (and much less error-prone) if it were specified as a 
> ratio of one side of the split to the other (from 0.0f to 1.0f).  This would 
> have the following benefits:
> 1) The caller can initialize the splitter location very easily, whereas 
> previously, you had to presuppose how the split pane would be laid out to 
> give a meaningul splitLocation property.
> 2) When the split pane is resized, granting proper allocations to each side 
> of the splitter becomes very easy, since the ratio stays the same.

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

Reply via email to