0

Testing the showModalDialog method of the window element, I noticed that Firefox ignores the 'center' & 'resizable' options, although the documentation states that these options are supported.

Chrome is also ignoring the 'resizable' option, with only IE & Safari being the 'good' browsers.

Is there any tricks to make the others behave correctly?

NeilC
  • 1,380
  • 1
  • 17
  • 36
  • Seems to be an old bug with Firefox : https://bugzilla.mozilla.org/show_bug.cgi?id=404668 – NeilC Jun 19 '13 at 12:28
  • More evidence with a solution to centering : http://cdmckay.org/blog/2009/07/07/how-to-kinda-fix-firefoxs-showmodaldialog/ – NeilC Jun 19 '13 at 12:31
  • 1
    I think that there is no standardized function called "showModalDialog" - http://www.w3.org/TR/Window/ You probably should use window.open instead. BTW. http://tjvantoll.com/2012/05/02/showmodaldialog-what-it-is-and-why-you-should-never-use-it/ – Ivan Kuckir Jun 19 '13 at 12:32
  • Using window.open is the fallback I'm currently using. However, I need to have some modal window implementation. Only Chrome is not honoring this implementation, I'm still able to interact with the parent window. – NeilC Jun 19 '13 at 12:45
  • Do you really need a new window? What about some new DOM element over the whole page? – Ivan Kuckir Jun 19 '13 at 12:54
  • Unfortunately yes, implementing OAuth and cannot browse away from current page. The annoyances aren't holding me back but I would like to solve it regardless. – NeilC Jun 19 '13 at 13:09

0 Answers0