Popup in Safari OSX opens different size than Safari on Windows -
i have code
window.open(null, "window", "status = 0, height = " + wizard_height - 50 + ", width = " + wizard_width - 50 + ", resizable = 0");
for reason in windows safari opens ok, in mac (osx) opens in full screen!
how can be?
thank you
instead of
"status = 0, height = " + wizard_height - 50 + ", width = " + wizard_width - 50
use
"status = 0, height = " + (wizard_height - 50) + ", width = " + (wizard_width - 50)
apparently javascript engine of latest safari on os x thinks
"status = 0, height = " + wizard_height - 50
as
("status = 0, height = " + wizard_height) - 50
and makes "nan", can see evaluating string in safari's debug console.
by way, know safari has debug console, right? go preferences, choose detail tab, , check "show developer menu" toolbox. can open web inspector, javascript console, etc.
Comments
Post a Comment