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

Width/height in em

1 Answer 225 Views
Window
This is a migrated thread and some comments may be shown as answers.
Seyfor
Top achievements
Rank 1
Seyfor asked on 29 Aug 2016, 10:33 AM
I need to set width/height in em. How can I do it?

1 Answer, 1 is accepted

Sort by
0
Accepted
Ianko
Telerik team
answered on 30 Aug 2016, 06:54 AM

Hello Matjaž,

 

The width option of Kendo Window supports only pixel and percent values.

 

If you want the initial size to be set in em you should can do that with a single line of JavaScript:

 

$("#dialog").kendoWindow();
$("#dialog").data("kendoWindow").wrapper.width("16em");

 

The same applies for the height option of Kendo Window.

 

Regards,
Ianko
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Window
Asked by
Seyfor
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or