Set height in % cause an issue

4 posts, 2 answers
  1. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 26 Feb Link to this post

    Hello! I've noticed that with last kendo release (2018.1.221.545) if I set the dialog height in % (not in pixels) the dialog window is displayed bad, here the dojo:

    https://dojo.telerik.com/AFidU/2

    I don't know if this behaviour is wanted, but all my dialogs in my application uses % for height, so cause me quite big issues.

    Greetings and good work!

  2. Answer
    Neli
    Admin
    Neli avatar
    221 posts

    Posted 27 Feb Link to this post

    Hello Mattia,

    Thank you for reporting the problem.

    I have logged an issue in our official Github repository. Here is a link to the issue, where you can track our progress on resolving it. 

    As a workaround of the problem you can use the calc() function to calculate the height of the Dialog in persentage.
    <style>
        .k-dialog-content{
          height: calc(100% - 150px) !important;
        }
    </style>
    Note, that the pixels in the clac() function should be equal to the Dialog header and footer total height, including borders that are inside. The header and footer height are depending on the theme you are using. Here is a Dojo example where the workaround is demonstrated.

    As a sign of gratitude your Telerik points are now updated.

    Regards,
    Neli
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Mattia
    Mattia avatar
    33 posts
    Member since:
    Mar 2015

    Posted 27 Feb in reply to Neli Link to this post

    Hello Neli, thanks for the reply, sadly in our application the user can change dynamiccaly the theme (one of kendo themes of course) so to make a general solution to this issue, requires me some other calculation on header and footer heights (i.e. I need to spend some work-time on it)

    Instead it is possible, when the fix will be ok, to get just the part of kendo library with this fix? (I mean, without wait next kendo release)

    Greetings,
    Mattia Thiella
  4. Answer
    Neli
    Admin
    Neli avatar
    221 posts

    Posted 28 Feb Link to this post

    Hi Mattia,

    I would suggest you to subscribe to issue in the GitHub in order to receive further updates. This way you will be notified when the issue has a milestone. Once the issue is fixed, it will be available within the next internal build. Then, you can check your account for the internal build and the bug fix.

    Regards,
    Neli
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top