fix oc dialog because the body isn't 100% x 100% in dimensions anymore

This commit is contained in:
Morris Jobke 2014-04-29 15:34:48 +02:00
parent 6b02126dc1
commit 14e568b13c
2 changed files with 5 additions and 6 deletions

View File

@ -24,12 +24,11 @@
}
.oc-dialog-buttonrow {
background: white;
float: right;
position: relative;
bottom: 0;
position: absolute;
bottom: 15px;
right: 15px;
display: block;
margin-top: 10px;
width: 100%;
}
.oc-dialog-close {

View File

@ -67,8 +67,8 @@
self.parent = self.$dialog.parent().length > 0 ? self.$dialog.parent() : $('body');
var pos = self.parent.position();
self.$dialog.css({
left: pos.left + (self.parent.width() - self.$dialog.outerWidth())/2,
top: pos.top + (self.parent.height() - self.$dialog.outerHeight())/2
left: pos.left + (window.innerWidth - self.$dialog.outerWidth())/2,
top: pos.top + (window.innerHeight - self.$dialog.outerHeight())/2
});
});