Width/height in em

2 posts, 1 answers
  1. Matjaž
    Matjaž avatar
    81 posts
    Member since:
    Jul 2015

    Posted 29 Aug Link to this post

    I need to set width/height in em. How can I do it?
  2. Answer
    Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 30 Aug Link to this post

    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.
     
  3. Kendo UI is VS 2017 Ready
Back to Top