From 4e674e6479e1291827231c11d7369f0f0d2e6ab6 Mon Sep 17 00:00:00 2001 From: Spencer Oberstadt Date: Sun, 9 Dec 2012 23:06:45 -0600 Subject: [PATCH] Fix pop-up mispositioning too low - fixes #61 It seems the coords are calculated before `create` is fired on dialog. So I recalculated after. --- js/jquery.mobile.simpledialog2.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.simpledialog2.js b/js/jquery.mobile.simpledialog2.js index 7b3c77d..609ab4d 100644 --- a/js/jquery.mobile.simpledialog2.js +++ b/js/jquery.mobile.simpledialog2.js @@ -275,7 +275,8 @@ } self.sdIntContent.addClass('ui-overlay-shadow in').css('zIndex', o.zindex).trigger('create'); - + coords = this._getCoords(this); + if ( o.fullScreen === true && ( coords.width < 400 || o.fullScreenForce === true ) ) { self.sdIntContent.removeClass('ui-simpledialog-container').css({'border': 'none', 'position': 'absolute', 'top': coords.fullTop, 'left': coords.fullLeft, 'height': coords.high, 'width': coords.width, 'maxWidth': coords.width }).removeClass('ui-simpledialog-hidden'); } else {