提交 f7b439eb 编写于 作者: C Catouse

* fix issue #121 and issue 118.

上级 911e87fc
......@@ -84,11 +84,11 @@
var half = Math.max(0, ($(window).height() - $dialog.outerHeight()) / 2);
if (position === 'fit') {
position = {marginTop: half * 2 / 3};
position = {top: Math.floor(half * 2 / 3)};
} else if (position === 'center') {
position = {marginTop: half};
position = {top: half};
} else if (!$.isPlainObject(position)) {
position = {marginTop: position};
position = {top: position};
}
if($dialog.hasClass('modal-moveable')) {
var pos = null;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册