Signed-off-by: Robin Appelman <robin@icewind.nl>
background: #fff;
margin-left: 12px;
}
-.oc-dialog-content {
- z-index: 1000;
-}
-.oc-dialog-separator {
-}
.oc-dialog-buttonrow {
+ position: relative;
display: block;
background: transparent;
right: 0;
bottom: 0;
- padding: 10px;
+ padding: 20px;
+ padding-bottom: 10px;
box-sizing: border-box;
width: 100%;
background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
.oc-dialog-buttonrow.onebutton button {
float: right;
}
+.oc-dialog-buttonrow:after {
+ visibility: hidden;
+ display: block;
+ font-size: 0;
+ content: " ";
+ clear: both;
+ height: 0;
+}
.oc-dialog-close {
position: absolute;
box-sizing: border-box;
display: inline-block;
overflow-y: auto;
- height: 321px;
+ height: calc(100% + 20px); /** overflow under the button row */
width: 100%;
padding-bottom: 55px;
}
content_height -= this.$buttonrow.outerHeight(true);
}
this.parent = this.$dialog.parent().length > 0 ? this.$dialog.parent() : $('body');
- content_height = Math.min(content_height, this.parent.height()-20);
+ if (this.parent.height() > 0) {
+ content_height = Math.min(content_height, this.parent.height() - 20);
+ }
if (content_height> 0) {
this.element.css({
height: content_height + 'px',