Skip to content

Instantly share code, notes, and snippets.

View brombomb's full-sized avatar
🐙
Coding

Rob Walsh brombomb

🐙
Coding
View GitHub Profile
@brombomb
brombomb / resize.js
Created March 22, 2013 20:06
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);
}