This is a migrated thread and some comments may be shown as answers.

Window resize limited after browser resize.

3 Answers 218 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 21 Oct 2018, 01:00 AM

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.

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 23 Oct 2018, 03:12 PM
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.
0
Andrew
Top achievements
Rank 1
answered on 26 Oct 2018, 06:14 PM
Thanks.
0
Ivan Danchev
Telerik team
answered on 30 Oct 2018, 09:37 AM
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.
Tags
Window
Asked by
Andrew
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or