Window resize limited after browser resize.

4 posts, 0 answers
  1. Andrew
    Andrew avatar
    2 posts
    Member since:
    Sep 2018

    Posted 20 Oct 2018 Link to this post

    Hi,

    When I add a window with a draggable containment that changes with browser resizing the kendo window is limited to the containment elements original browser size.

    1. run the example with a small browser window.

    2. resize the browser to make it bigger.

    3. try to resize the kendo window to make it bigger, it will not get bigger than the original containment size.

    https://dojo.telerik.com/axuRUkiq/3

    Is there an initialization function that I can call to reset the containment? I can kind of fix it by setting the maxHeight, maxWidth options on the window resize.

    Thanks.

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2086 posts

    Posted 23 Oct 2018 Link to this post

    Hello Andrew,

    Currently changing the Window's draggable configuration after initialization, is not taken into account (even if the setOptions method is used), so we can suggest destroying and re-initializing the widget on window.resize. Here's a modified version of the dojo example you posted.

    Regards,
    Ivan Danchev
    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.
  3. Andrew
    Andrew avatar
    2 posts
    Member since:
    Sep 2018

    Posted 26 Oct 2018 in reply to Ivan Danchev Link to this post

    Thanks.
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2086 posts

    Posted 30 Oct 2018 Link to this post

    Hello Andrew,

    Please have in mind that the setOptions method, which the widgets inherit from the base class, is implemented per widget and some widget options cannot be set with this method.

    Regards,
    Ivan Danchev
    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