Documentation appears to be wrong

2 posts, 1 answers
  1. gregory
    gregory avatar
    41 posts
    Member since:
    Jun 2006

    Posted 19 Jun Link to this post

    Hi all, 
    The documentation on the kendoScrollvView demo link appears to be wrong: https://demos.telerik.com/kendo-ui/scrollview/index

    The provided css contains a #scrollview-home string. However, this should be just #scrollview, not #scrollview-home:
    ("#scrollview-home .photo { display: inline-block; background-size: cover; background-repeat: no-repeat; background-position: center center;}")

    However, when I correct it, I still can't get the background image to properly cover the widget. It centers the image, but it contains overflow on the side which expands the width of the widget and expands out to the next screen. Is there an example how to use this widget on an adaptive site?
    Thanks for your advice, 

    Gregory

  2. Answer
    Alex Hajigeorgieva
    Admin
    Alex Hajigeorgieva avatar
    771 posts

    Posted 21 Jun Link to this post

    Hello, Gregory,

    Thank you for getting in touch to report the broken link. I have now fixed it and this should reflect next time we release the demos site.

    As far as the demo and adaptiveness is concerned, you could add a handler to the window resize event and resize its element (or the widget):

    $(window).resize(function(){
      kendo.resize($("#scrollView"));
    });

    Here is a sample Dojo that I tested with:

    https://dojo.telerik.com/oCejocEt/2

    Let me know in case you have any further questions.

    Kind Regards,
    Alex Hajigeorgieva
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top