diff options
author | Robin Appelman <robin@icewind.nl> | 2016-11-25 20:49:50 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-25 20:54:08 +0100 |
commit | f4d79485d72354c4f0c88d5291c04ad1cbc0de0c (patch) | |
tree | 4222384455816b23c50c0df9fc97487c6ffa6a6f /core/js/jquery.ocdialog.js | |
parent | 47646794b9426f40c12719d78c5a92a71570b4b2 (diff) | |
download | nextcloud-server-f4d79485d72354c4f0c88d5291c04ad1cbc0de0c.tar.gz nextcloud-server-f4d79485d72354c4f0c88d5291c04ad1cbc0de0c.zip |
fix styling of filepicker dialog
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'core/js/jquery.ocdialog.js')
-rw-r--r-- | core/js/jquery.ocdialog.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/jquery.ocdialog.js b/core/js/jquery.ocdialog.js index 66c7d9bd7f1..9d1d58bdf64 100644 --- a/core/js/jquery.ocdialog.js +++ b/core/js/jquery.ocdialog.js @@ -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', |