How can I stop slider to get auto-resized?

obatake1029's Avatar

obatake1029

24 Aug, 2012 07:19 AM

I would like to control the size of slider only by changing the value of .royalSlider entry in royalslider.css by my own code.
I have vertically long image contents to display mainly for iPad Portrait orientation, the height of image gets too short after the resize.
Even though I leave the setting of autoScaleSlider as false, as the browser size get smaller, the slider try to auto-resized.
Is there any way to completely stop suto-resizing?

Thank you.

  1. Support Staff 1 Posted by Dmitry Semenov on 24 Aug, 2012 09:24 AM

    Dmitry Semenov's Avatar

    If you don't want it to listen for any browser resize events:

    $(window).off('resize.rs');
    

    When you set autoScaleSlider: false slider stops resizing height based on width.

    Dmitry

  2. Dmitry Semenov closed this discussion on 28 Aug, 2012 08:58 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