Created
March 22, 2013 20:06
-
-
Save brombomb/5224348 to your computer and use it in GitHub Desktop.
Resize a showModalDialog or ShowModelessDialog and have all the content resize as well.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size = [640, 480] | |
if(window.dialogArguments !== null && window.dialogArguments !== undefined) { // Check for IE Window | |
window.dialogWidth = size[0] + 'px'; | |
window.dialogHeight = size[1] + 'px'; | |
$('*').addClass('ie').removeClass('ie'); // Holy Crap This Works! | |
} else { | |
window.resizeTo(parseInt(size[0], 10), parseInt(size[1], 10) + _windowHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment