Limit max-height Full-Width-Slider

marketing's Avatar

marketing

19 Sep, 2012 04:55 PM

Hi RoyalSlider Support Team,

I need to limit the max-height of the full-width slider because sometimes it becomes too big in height .. I need to limit it to a max of 360 pixels, I tried doing it by CSS but sometimes an invisible code (not found with firebug) automatically seizes it with the auto-scale height.

Thanks in advance,

(BTW: autoScaleSliderHeight: 360, - not worked.. it scales up to 460px)

  1. Support Staff 1 Posted by Dmitry Semenov on 19 Sep, 2012 07:33 PM

    Dmitry Semenov's Avatar

    Hi,

    Make sure that you don't apply any other CSS rules to height, slider sets size only via autoScaleSliderWidth and autoScaleSliderHeight properties.

    Dmitry

  2. 2 Posted by ivan on 29 Sep, 2012 08:07 PM

    ivan's Avatar

    Height is calculated based on current width and autoScaleSliderWidth and autoScaleSliderHeight options (only their ratio matters.)

    I would suggest limiting width of container that you have your slider in.

    Example:
    if you set
    autoScaleSliderWidth: 16
    autoScaleSliderHeight: 9
    and make sure a div where slider sits doesn't get wider than 640px, your slider height is then limited at 360px.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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