Automatic width and height on window.

2 posts, 0 answers
  1. 100%
    100% avatar
    75 posts
    Member since:
    Apr 2013

    Posted 04 Mar 2014 Link to this post

    It seems like on the page

    http://docs.telerik.com/kendo-ui/api/web/window

    the help section for the property width and height fails to tell how to setup a window to automatically resize to fit the contents.

    How can that be done?
  2. Dimo
    Admin
    Dimo avatar
    8332 posts

    Posted 05 Mar 2014 Link to this post

    Hello,

    The Window's width and height properties are optional and if you do not set them, the widget will resize, according to its content, when an iframe is not used. The following demo shows this with regard to the height:

    http://demos.telerik.com/kendo-ui/web/window/index.html

    In some cases, it is recommended to use a width, because otherwise there is a risk for the Window to expand horizontally too much, if its contents can expand without limits.

    When an iframe is used, automatic sizing does not work, because iframes do not resize, according to their child document. In this case you need to access the page inside the iframe, calculate its dimensions and apply them to the iframe.

    http://docs.telerik.com/kendo-ui/getting-started/web/window/overview#using-iframes

    Regards,
    Dimo
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
Back to Top