I've created a web application in sharepoint which has a sign in link which loads a login webpart in the modal window on click. I haven't set the height of the modal pop through options but i have set its width only.
IE 7, 8 and 9 loads the webpart as per my need, and it automatically adjusts its height on load. But Firefox (din't test in Chrome) loads the webpart but the height is not adjusted automatically to fit the login WP.
I tried using SP.UI.ModalDialog.get_childDialog().autoSize() explicitly like below
ExecuteOrDelayUntilScriptLoaded(function () {
SP.UI.ModalDialog.get_childDialog().autoSize();
}, "sp.ui.dialog.js");
But this also does not work for Firefox. Calling autoSize in IE works great when I display the errors on login screen but on FF it returns height to be less than 20px and the modal popup seems to have a width but its height is less than 20.
How do I solve this issue?
Please help.
Sorry if I looked like a noob to all.
Thanks in advance