diff --git a/src/main/java/org/olat/modules/qpool/ui/_content/items.html b/src/main/java/org/olat/modules/qpool/ui/_content/items.html index 137c5c23df8de6c6f09edac93368eba6763d5bc4..3518c1e0a2115905d4d4e9bd05eda579d4c3b9d7 100644 --- a/src/main/java/org/olat/modules/qpool/ui/_content/items.html +++ b/src/main/java/org/olat/modules/qpool/ui/_content/items.html @@ -27,7 +27,8 @@ jQuery(function() { var footerHeight = jQuery('#b_footer').height() + jQuery('#qbuttons').height(); var maxHeight = winHeight - headerHeight - footerHeight - 50; ## padding arount table = relative position of table (space for search field) + height of action buttons below table + some extra space - var panePadding = jQuery('.dataTables_wrapper').position().top + jQuery('.o_qpool_button_bar_box').height() + 80; + var dataTablesPos = jQuery('.dataTables_wrapper').position() + var panePadding = (dataTablesPos ? dataTablesPos.top : 0) + jQuery('.o_qpool_button_bar_box').height() + 80; jQuery('#qpoolcontainer').width(width).height(maxHeight).layout({ north: { size: '50%' },