Permalink
Browse files

Make sure we have the right starting height

  • Loading branch information...
flack committed Oct 9, 2017
1 parent 638d49d commit 34f48dbccdcdb2767329edc98208a076cf659ea9
Showing with 13 additions and 8 deletions.
  1. +13 −8 lib/org/openpsa/documents/style/show-directory.php
@@ -9,6 +9,17 @@
<script type="text/javascript">
$(document).ready(function() {
function resize()
{
if ($('#elfinder').height() !== $('#elfinder').parent().parent().height() - 2) {
$('#elfinder')
.css('width', 'auto')
.height($('#elfinder').parent().parent().height() - 2)
.trigger('resize');
}
}
$('#elfinder').elfinder({
url : '&(prefix);connector/',
defaultView: 'list',
@@ -39,14 +50,8 @@
]
},
handlers: {
resize: function(event, elfinder) {
if ($('#elfinder').height() !== $('#elfinder').parent().parent().height() - 2) {
$('#elfinder')
.css('width', 'auto')
.height($('#elfinder').parent().parent().height() - 2)
.trigger('resize');
}
}
resize: resize,
load: resize
},
sortRules : {
owner : function(file1, file2) {

0 comments on commit 34f48db

Please sign in to comment.