From aec206b71242da62ac1d6bab101c6968b84dc430 Mon Sep 17 00:00:00 2001 From: Maurice Gottlieb Date: Sat, 29 Oct 2011 16:52:31 +0300 Subject: [PATCH] Fix for #2881 - @wilto Could you please review this: Add the ui-overlay-shadow class to both, content and, if there, to the footer. Then add the ui-corner-bottom-class to the last one. --- js/jquery.mobile.dialog.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/jquery.mobile.dialog.js b/js/jquery.mobile.dialog.js index b109a5c90ca..4b81899daa9 100644 --- a/js/jquery.mobile.dialog.js +++ b/js/jquery.mobile.dialog.js @@ -33,8 +33,9 @@ $.widget( "mobile.dialog", $.mobile.widget, { .prepend( headerCloseButton ) .end() .find( ":jqmData(role='content'),:jqmData(role='footer')" ) + .addClass( "ui-overlay-shadow" ) .last() - .addClass( "ui-corner-bottom ui-overlay-shadow" ); + .addClass( "ui-corner-bottom" ); // this must be an anonymous function so that select menu dialogs can replace // the close method. This is a change from previously just defining data-rel=back