Change the fitInviewport option

Leo's Avatar

Leo

15 Jul, 2014 12:48 PM

This comment was split from the discussion: Initialize Royal Slider on AJAX Pages

Hi Dmitry,

Could you give some advise on how to recreate/reinit or change the fitInviewport settings on window resize? thanks

  1. Support Staff 1 Posted by Dmitry Semenov on 15 Jul, 2014 12:50 PM

    Dmitry Semenov's Avatar

    Hi,

    jQuery('.royalSlider').data('royalSlider').st.thumbs.fitInViewport = false;
    

    ... will change it to false. You also need to call updateSliderSize(true) method after it, if you change this setting not in window.resize.

    Dmitry

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