fix #649 admin 페이지에서 modal의 버튼이 가려져 선택할 수 없는 문제 해결

- modal의 높이를 화면 크기를 고려하여 조정하도록 개선
This commit is contained in:
bnu 2014-05-13 10:30:56 +09:00
parent 942ff891ed
commit 57987aa904

View file

@ -422,6 +422,15 @@ jQuery(function($){
var zIndex = xeModalInitailZIndex + ((xeModalStack.length - 1) * 2);
$xeModalBackdrop.css('z-index', zIndex).show();
var xeModalBackdropHeight = $xeModalBackdrop.height();
var modalBodyHeight = xeModalBackdropHeight;
modalBodyHeight -= $modal.find('.x_modal-header:visible').height();
modalBodyHeight -= $modal.find('.x_modal-footer:visible').height();
modalBodyHeight -= $modal.offset().top;
modalBodyHeight -= 120;
$modal.find('.x_modal-body').css('height', modalBodyHeight);
$modal.css('z-index', zIndex + 1);
})
.bind('close.mw', function(){