From 8c9ef8feb9c7685e0e2b32353c1eab05a04fb3a7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 24 Jun 2013 16:12:00 +0200 Subject: [PATCH] "Insert Media" dialog: Reposition separately (fixes #783) FF21 and IE10 seem to propagate the DOM attribute changes differently from Chrome: The dimensions can't be set in the same setOptions() call through jQuery UI here. Fixed this by a separate setOption() call. --- admin/javascript/ssui.core.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/admin/javascript/ssui.core.js b/admin/javascript/ssui.core.js index dff784fe7..de5b8a0df 100644 --- a/admin/javascript/ssui.core.js +++ b/admin/javascript/ssui.core.js @@ -207,12 +207,8 @@ opts.height = newHeight; } } - if(this.options.autoPosition) { - opts.position = this.options.position; - } if(!jQuery.isEmptyObject(opts)) { - // Resize dialog this._setOptions(opts); // Resize iframe within dialog @@ -226,6 +222,11 @@ - parseFloat(this.element.css('paddingTop')) - parseFloat(this.element.css('paddingBottom')) ); + + // Enforce new position + if(this.options.autoPosition) { + this._setOption("position", this.options.position); + } } } });