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

Todd Volkert updated PIVOT-75:
------------------------------

          Description: 
For the occasion when SplitPanes are embedded inside each other, it would be 
nice if I could set the inner SplitPane's to relative-resize-mode i.e. when 
it's size is reduced or expanded, it should adjust the splitter location to 
maintain the relative sizes of the top/bottom components.

To solve this, note that 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.

  was:For the occasion when SplitPanes are embedded inside each other, it would 
be nice if I could set the inner SplitPane's to relative-resize-mode i.e. when 
it's size is reduced or expanded, it should adjust the splitter location to 
maintain the relative sizes of the top/bottom components.

    Affects Version/s: 1.2
              Summary: SplitPane's splitLocation(int) property should be 
splitRatio(float)  (was: SplitPane should have relative resize style)

Updating description to be more correct in the 1.3 release notes

> SplitPane's splitLocation(int) property should be splitRatio(float)
> -------------------------------------------------------------------
>
>                 Key: PIVOT-75
>                 URL: https://issues.apache.org/jira/browse/PIVOT-75
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>    Affects Versions: 1.1, 1.2
>            Reporter: Noel Grandin
>            Assignee: Niclas Hedhman
>             Fix For: 1.3
>
>         Attachments: PIVOT-75-Fix.patch, PIVOT-75-Fix2.patch, 
> split_ratio.patch
>
>
> For the occasion when SplitPanes are embedded inside each other, it would be 
> nice if I could set the inner SplitPane's to relative-resize-mode i.e. when 
> it's size is reduced or expanded, it should adjust the splitter location to 
> maintain the relative sizes of the top/bottom components.
> To solve this, note that 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