From 5e34201ddcd510cc02f462db2c615ae1ad57d314 Mon Sep 17 00:00:00 2001 From: scottjehl Date: Wed, 6 Oct 2010 01:10:30 -0400 Subject: [PATCH] fixed some things with dialog's css and classes --- css/jQuery.mobile.dialog.css | 8 ++++---- js/jQuery.mobile.dialog.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/css/jQuery.mobile.dialog.css b/css/jQuery.mobile.dialog.css index 5106a4ef..2e540854 100644 --- a/css/jQuery.mobile.dialog.css +++ b/css/jQuery.mobile.dialog.css @@ -3,7 +3,7 @@ * Copyright (c) jQuery Project * Dual licensed under the MIT (MIT-LICENSE.txt) or GPL (GPL-LICENSE.txt) licenses. */ -.ui-dialog .ui-headfoot-placehold, .ui-dialog .ui-content { margin: 15px; position: relative; } -.ui-dialog .ui-headfoot-placehold { z-index: 10; } -.ui-dialog .ui-fixpos { margin-top: -15px; } -.ui-dialog .ui-content { margin-top: -15px; margin-bottom: -15px; } \ No newline at end of file +.ui-dialog .ui-header, .ui-dialog .ui-content, .ui-dialog .ui-footer { margin: 15px; position: relative; } +.ui-dialog .ui-header, .ui-dialog .ui-footer { z-index: 10; width: auto; } +.ui-dialog .ui-fixed-overlay { margin-top: 0; } +.ui-dialog .ui-content, .ui-dialog .ui-footer { margin-top: -15px; } \ No newline at end of file diff --git a/js/jQuery.mobile.dialog.js b/js/jQuery.mobile.dialog.js index d774b4b8..2204c062 100644 --- a/js/jQuery.mobile.dialog.js +++ b/js/jQuery.mobile.dialog.js @@ -9,10 +9,10 @@ $.fn.dialog = function(options){ return $(this).each(function(){ $(this) .addClass('ui-dialog ui-body-a') - .find('.ui-header') + .find('[data-role=header]') .addClass('ui-corner-top ui-overlay-shadow') .end() - .find('.ui-content,.ui-footer') + .find('.ui-content,[data-role=footer]') .last() .addClass('ui-corner-bottom ui-overlay-shadow'); });