Skip to content
Snippets Groups Projects
Commit 37f11d60 authored by srosse's avatar srosse
Browse files

OO-709: fix javascript error if the table of items isn't rendered

parent d50522c1
No related branches found
No related tags found
No related merge requests found
......@@ -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%' },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment