I spoke too soon about using
Mutation Observer. A
Mutation observer watches for
DOM changes and can execute a callback when an observed DOM element changes. But I think you are referring to the popup
WINDOW which is in another context altogether. So I think the easiest way to do this is to just modify
OpenAddMaster() which has hard-coded values for the
width and
height of the popup
WINDOW.
From the console get the source of
OpenAddMaster with this command:
OpenAddMaster.toString()
and run the string through
http://jsbeautifier.org/ You will get this output:
http://pastebin.com/8Zuv2Vdc Now in the
module.js user defined page used in implementing the
image onload technique just redefine the function
OpenAddMaster so that is has the
width and
height you want:
AM_window = (window.open(mdbid + "?a=GenNewRecord&bg=1", "_blank", "width=
1000,height=
600,scrollbars,resizable"));
Yes it is true you can redefine
any QuickBase function to make it do your bidding. April Fools Day is coming up shortly and this is a great technique to master to prank all of you cubicle pals.
UPDATE: Here is the code to use in the child form:
Pastie Databasehttps://haversineconsulting.quickbase.com/db/bgcwm2m4g?a=dr&rid=499 I added some logic to
center the form in the middle of the screen and use the specified
height and
width.