ScaleMode fill without cutting off the top of the image

shootex's Avatar

shootex

05 Sep, 2012 05:02 PM

Is this possible?

I'm doing a full width slideshow and using photography with models, the problem with the current scale mode is that it will cut the head off the models when scaled large enough.

Is there anything available to preserve the top of the slide and scale from the bottom to avoid decapitation?

Many thanks,
Phil

  1. 1 Posted by Stef on 06 Sep, 2012 02:49 PM

    Stef's Avatar

    Hey Phil,

    try the following option when you instantiate your slider:

    imageAlignCenter: false,
    

    Best regards,
    Steffen

  2. 2 Posted by shootex on 06 Sep, 2012 04:03 PM

    shootex's Avatar

    This works a charm Stef, thanks!

  3. 3 Posted by Stef on 06 Sep, 2012 04:05 PM

    Stef's Avatar

    Welcome!

  4. Dmitry Semenov closed this discussion on 07 Sep, 2012 05:37 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac