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

Greg Brown resolved PIVOT-121.
------------------------------

    Resolution: Fixed

CardPaneSkin now exposes two styles: 

sizeToSelection:boolean 
selectionChangeEffect:SelectionChangeEffect 

where SelectionChangeEffect is an enum, currently containing CROSSFADE, 
HORIZONTAL_SLIDE, and VERTICAL_SLIDE. Other effects such as horizontal and 
vertical FLIP and ROTATE are now possible. When set to null, no effect is 
applied. 

An important change is that we always justify, regardless of the 
sizeToSelection flag. It was too complicated trying to figure out how to handle 
alignment, and we don't have to (and probably shouldn't). We have other 
containers that can handle alignment for us (such as FlowPane). We made a 
similar decision regarding TablePane, which always justifies its cell contents. 
This approach is cleaner and more consistent with our other components. 



> Clean up CardPaneSkin styles
> ----------------------------
>
>                 Key: PIVOT-121
>                 URL: https://issues.apache.org/jira/browse/PIVOT-121
>             Project: Pivot
>          Issue Type: Improvement
>          Components: wtk
>    Affects Versions: 1.1
>            Reporter: Greg Brown
>            Assignee: Greg Brown
>            Priority: Minor
>             Fix For: 1.2
>
>
> Currently, the styles that control effects in CardPaneSkin are confusing and 
> inflexible. Need a way to more clearly express what effects to apply and 
> rework the code so it can more easily support additional effects.

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