limit filepicker height to screen

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2016-11-25 20:50:09 +01:00
parent f4d79485d7
commit a8ce10bba3
No known key found for this signature in database
GPG Key ID: 425003AC385454C5
1 changed files with 1 additions and 8 deletions

View File

@ -233,7 +233,7 @@ var OCdialogs = {
closeOnEscape: true,
// max-width of 600
width: Math.min((4/5)*$(document).width(), 600),
height: 420,
height: Math.min((4 / 5) * $(document).height(), 500),
modal: modal,
buttons: buttonlist,
close: function() {
@ -253,10 +253,6 @@ var OCdialogs = {
} else {
buttonEnableDisable.prop("disabled", true);
}
if (!OC.Util.hasSVGSupport()) {
OC.Util.replaceSVG(self.$filePicker.parent());
}
})
.fail(function(status, error) {
// If the method is called while navigating away
@ -835,9 +831,6 @@ var OCdialogs = {
});
self.$filelist.removeClass('icon-loading');
if (!OC.Util.hasSVGSupport()) {
OC.Util.replaceSVG(self.$filePicker.find('.dirtree'));
}
});
},
/**