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

Set height in % cause an issue

3 Answers 42 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Mattia
Top achievements
Rank 1
Mattia asked on 26 Feb 2018, 02:54 PM

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!

3 Answers, 1 is accepted

Sort by
0
Accepted
Neli
Telerik team
answered on 27 Feb 2018, 03:44 PM
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.
0
Mattia
Top achievements
Rank 1
answered on 27 Feb 2018, 04:07 PM
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
0
Accepted
Neli
Telerik team
answered on 28 Feb 2018, 02:40 PM
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.
Tags
Dialog
Asked by
Mattia
Top achievements
Rank 1
Answers by
Neli
Telerik team
Mattia
Top achievements
Rank 1
Share this question
or