Hi, Zhivko.
The window is meant to be top-level element, ideally not placed inside any container, or if placed, the container should not have padding, border or margins.
Looking at the code in question: https://github.com/telerik/kendo-ui-core/blob/master/src/kendo.window.js#L1329-L1358, you can see that the new width / height is calculated as the greater of the two distances (document edge, container edge). That's why in the beginning the window is correct in size and then "jumps" to the expected size + the pixels from the container edge to the document edge.
Is it paramount that the windows are placed inside a container with padding / margin?
Regards,
Ivan Zhekov
Telerik
The window is meant to be top-level element, ideally not placed inside any container, or if placed, the container should not have padding, border or margins.
Looking at the code in question: https://github.com/telerik/kendo-ui-core/blob/master/src/kendo.window.js#L1329-L1358, you can see that the new width / height is calculated as the greater of the two distances (document edge, container edge). That's why in the beginning the window is correct in size and then "jumps" to the expected size + the pixels from the container edge to the document edge.
Is it paramount that the windows are placed inside a container with padding / margin?
Regards,
Ivan Zhekov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!