title | page_title | description | slug | canonicalLink | position |
---|---|---|---|---|---|
Dimensions |
Dimensions - Window - Kendo UI for Vue |
Set the dimensions of the Kendo UI Window wrapper in Vue projects. |
dimensions_window_wrapper |
1 |
By default, the size of the Window depends on its content and the component does not provide preset dimensions.
If the Window uses an iframe
element, it does not resize automatically according to the iframe content, because no relationship exists between the content and the size of the iframe. However, iOS devices do not support iframe scrolling and expand iframes according to their content. This behavior might increase the Window height too much. That is why it is not recommended to use the Window in an iframe
mode on Apple touch devices.
If the component contains horizontally expandable block-level elements (including Kendo UI components such as the Grid, Editor, and others), it can expand horizontally until it touches the right edge of the browser viewport. In such cases, the component sticks to the right viewport edge and cannot be separated from it. This issue occurs because the Window is absolutely positioned with CSS. To avoid such behavior, set an appropriate width to the component or a (max-)width to its content. The lack of restrictions over the dimensions for the vertical expanding of the Window and its content might result in undesired behavior—for example, the rendition of a popup which is higher than the browser viewport.
{% meta height:470 %} {% embed_file dimensions/main.vue preview %} {% embed_file dimensions/main.js %} {% endmeta %}