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.
ISIndrajith Srinivasan Syncfusion Team January 8, 2020 08:17 AM
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.