We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How the Dialog's css max-height is being calculated?

Thread ID:





150447 Jan 7,2020 04:08 PM UTC Jan 9,2020 05:45 AM UTC Blazor 3
Tags: Dialog
Asked On January 7, 2020 04:08 PM UTC


   How is css max-height is being calculated? Or maybe we can just remove the max-height because I have a dynamic data being populated inside the Dialog which is inside a component. In my dialog which has a fixed height, the max-height is different from the one that has a dynamic values. So it would turn out the dialog that has dynamic value has small max-height. It cannot even be manipulated with the height attribute of the dialog.


Indrajith Srinivasan [Syncfusion]
Replied On January 8, 2020 01:17 PM UTC

Greetings from Syncfusion support 
Query 1: css max-height calculation  
The Max-Height for the dialog is calculated based on the target. If the target is not set specified externally, the dialog consider ‘document.body’ as target and calculated max-height based on it. So, we ensure whether the target of Dialog has proper height on open the Dialog.

Query 2: remove the max-height
Yes, you can prevent the MaxHeight for the Dialog in the OnOpen event, So, the dialog is rendered based on the given height and stopped the automatic calculation of max-height. 
<DialogEvents OnOpen="@beforeOpen"></DialogEvents> 
private void beforeOpen(BeforeOpenEventArgs args) 
    args.MaxHeight = null; 
Could you please try out the above solution and confirm whether it resolves your reported issue? 

Replied On January 8, 2020 03:26 PM UTC

Okay, that's cool. Thank you.

Indrajith Srinivasan [Syncfusion]
Replied On January 9, 2020 05:45 AM UTC

Thanks for your update. Please get back to us if you need further assistance on this. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon