Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1165
igDialog in AngularJs app gets wrong height
posted

Hi,
I am using igDialog inside a AngularJs app.
I have created a directive to open the dialog so it can be reusable. 
I am using an iframe to open an external page.  

When I open the dialog,  the height is rendered wrong. 
Attached is a demo page - the height is set to 700px but the dialog is rendered to 1477px.
After digging a bit in the infragistics.ui.dialog.js code i  found that part of the problem is in the _doSizePX method :
the elem[0].offsetHeight is 0 and the minHeight var is calculated like 
minHeight = height - elem[0].offsetHeight;
so the minHeight gets the size of the dialog height and the next line is:

if (minHeight > 0) {
elem0.height(Math.max(height - zeroHeight + minHeight, 0));
}
so the dialog gets the wrong height.

I don't know why, but i think it has something to do with the Angular digest cycle that the ng-click initiates.

Is there any workaround to that issue,
please advice

Thank you
 

 

infragistincs demo.zip