Stretch to window height

hans.huebner's Avatar

hans.huebner

25 May, 2015 11:15 AM

Hi,

I'm trying to stretch my image slider to the full window size following the instructions on http://help.dimsemenov.com/kb/royalslider-jquery-plugin-faq/how-stretch-slider-to-full-browser-width-and-height - It does not work, though, as the slider element always has fixed width (600) and height (400) styles that are apparently set by RoyalSlider. The JSFiddle linked from the KB article does not seem to create a slider across the full window size. Has anything changed with respect to the KB article and RoyalSlider 9.5.6?

Thanks,
Hans

  1. Support Staff 1 Posted by Dmitry Semenov on 25 May, 2015 06:26 PM

    Dmitry Semenov's Avatar

    Hello,

    No, nothing is changed. Size of slider is defined just via CSS – http://help.dimsemenov.com/kb/royalslider-jquery-plugin-faq/how-to-... . Please provide link to isolated example that reproduces the problem.

    Dmitry

  2. 2 Posted by hans.huebner on 25 May, 2015 07:02 PM

    hans.huebner's Avatar

    I've put up my thing here: http://netzhansa.com:3449/index.html

    royalSlider is instantiated like this (sorry for the ClojureScript):

    (.royalSlider ($ :.royalSlider)
                  #js {:keyboardNavEnabled true
                       :arrowsNavAutoHide true
                       :controlNavigation "none"
                       :transitionType "fade"
                       :autoScaleSlider false
                       :autoHeight false
                       :fitInViewport true
                       :imageScaleMode "fill"
                       :fullscreen { :enabled true :nativeFS true } })

    Any help would be greatly appreciated! Thanks!
    -Hans

    2015-05-25 20:27 GMT+02:00 Dmitry Semenov <[email blocked]>
    :

  3. 3 Posted by hans.huebner on 26 May, 2015 04:40 AM

    hans.huebner's Avatar

    Dmitry,

    please disregard this request. I was able to solve the problem myself,
    which was caused by using // comments in CSS. Sorry for the noise :(

    Also, I forgot to thank you for royalSlider, it is truly great!

    -Hans

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