Skip to content

Instantly share code, notes, and snippets.

@brombomb
Created March 22, 2013 20:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brombomb/5224348 to your computer and use it in GitHub Desktop.
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.
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