* updated zui.

* fixed an error in my.js.
This commit is contained in:
Catouse
2014-06-05 10:27:27 +08:00
parent 274dee7978
commit ef4a98a4e1
2 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -913,7 +913,9 @@ function setModal()
var $framebody = $frame.find('body');
setTimeout(function()
{
modalBody.css('height', $framebody.addClass('body-modal').outerHeight());
var fbH = $framebody.addClass('body-modal').outerHeight();
if(typeof fbH == 'object') fbH = $framebody.height();
modalBody.css('height', fbH);
if(options.center) dialog.css('margin-top', Math.max(0, (modal.height() - dialog.height())/3));
modal.removeClass('modal-loading');
if(modal.data('first')) modal.data('first', false);
@@ -923,7 +925,9 @@ function setModal()
{
$framebody.resize(function()
{
modalBody.css('height', $framebody.outerHeight());
var fbH = $framebody.addClass('body-modal').outerHeight();
if(typeof fbH == 'object') fbH = $framebody.height();
modalBody.css('height', fbH);
});
}
}
File diff suppressed because one or more lines are too long