Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix styling of filepicker dialog
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 committed Nov 25, 2016
commit f4d79485d72354c4f0c88d5291c04ad1cbc0de0c
17 changes: 11 additions & 6 deletions core/css/jquery.ocdialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,14 @@
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));
Expand All @@ -42,6 +39,14 @@
.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;
Expand Down
2 changes: 1 addition & 1 deletion core/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ a.bookmarklet { background-color:#ddd; border:1px solid #ccc; padding:5px;paddin
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;
}
Expand Down
4 changes: 3 additions & 1 deletion core/js/jquery.ocdialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@
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',
Expand Down