Agreed.  I thought a centered destination could be useful a little while
after I wrote my email.

There could be a boolean style of 'centerOnOwner' (not a great name) which
would be used in conjunction with the other style.  That would allow the
user to specify where the sheet slides in from, and whether it stays aligned
to that side, or ends up centred,

I don't think we need to be able to specify *both* where the sheet slides in
FROM, and where it slides TO, but it would be possible with 2 styles named
'slideSource' and 'slideDestination' rather than the others mentioned above.


SlideSource would allow LEFT/RIGHT/UP/DOWN, but not CENTER.
SlideDestination would allow LEFT/RIGHT/UP/DOWN and CENTER.

Chris

On 7 December 2010 21:33, Dirk Möbius <[email protected]> wrote:

> I would also like to have an option to slide to the CENTER, so that the
> final destination of the Sheet is not attached to any border, but aligned to
> the center of the enclosing Window.
>
> Dirk.
>
>
>
> Chris Bartlett <[email protected]> wrote:
>
>> There is currently no way to configure Sheet to slide in from another
>> side.
>> This is something that I also want and was planning to have a go at it
>> shortly.
>>
>> At first glance it seems to be a fairly simple task to change the
>> TerraSheetSkin behaviour so that OpenTransition updates the x position of
>> the TranslationDecorator, and TerraSheetSkin#alignToOwner() places the
>> initial sheet correctly.
>>
>> My plan was to create a new enum to represent the sides (LEFT, RIGHT, TOP,
>> BOTTOM or NORTH, SOUTH, EAST, WEST) and add a new style named something
>> like
>> 'sheetPlacement' which would use the enum.
>>
>> Setting it to LEFT/WEST would mean that the sheet would slide in from the
>> left side and stop at the left side of the parent window (centred
>> vertically).
>>
>> In this case, alignToOwner() and OpenTransition would have to be able to
>> handle the 4 different values.
>>
>> Chris
>>
>> On 7 December 2010 15:41, MSafiri <[email protected]> wrote:
>>
>>
>>> Dear All,
>>>
>>> I understood that the Sheet, by default, opens from the top of its owner.
>>> Is
>>> there a way to set from which side this should slide in? like, left,
>>> right,
>>> bottom?
>>>
>>> A screen example is attached to illustrate what I would like to achieve
>>> (the
>>> TableView have some rubbish inside).
>>>
>>> Thanks alot for your help,
>>>
>>> http://apache-pivot-users.399431.n3.nabble.com/file/n2032319/3.png
>>>
>>> MSafiri
>>>
>>> --
>>> View this message in context:
>>>
>>> http://apache-pivot-users.399431.n3.nabble.com/Sheet-sliding-in-from-the-left-right-bottom-Is-there-a-way-tp2032319p2032319.html
>>>
>>
>
>
>

Reply via email to