Skip to content

Commit

Permalink
Fix pop-up mispositioning too low - fixes jtsage#61
Browse files Browse the repository at this point in the history
It seems the coords are calculated before `create` is fired on dialog. So I recalculated after.
  • Loading branch information
soberstadt committed Dec 10, 2012
1 parent a8c93e8 commit 4e674e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jquery.mobile.simpledialog2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4e674e6

Please sign in to comment.