DIV height with DataTables...Can't change.
DIV height with DataTables...Can't change.
'Lo all,
First of all, loving datatables. Saved me a TON of work, however, I cannot change the height of the datatable itself.
I have the following:
[code]
"sScrollY": "200",
"bScrollCollapse": true,
iDisplayLength": 10,
"asStripClasses": [ 'odd', 'even' ],
"aaData": aDataSet_companynotes,
"aoColumns": aColumns_companynotes
[/code]
When there are 2 rows, the bottom (buttons, etc) come up to just under the last row. So far, so good. When there are more than 10, the scroll kicks in. So far, so good.
HOWEVER, any data (the DIV is inside a table cell) below that div is kept a certain height no matter what I do. I cannot bring the next TR up when the number of rows in the DIV is (for instance) 2. it always seems to be a certain height. When I have another DiV in a table row below this one, same issue. big gap between the end of where the div is and where the next tr begins drawing.
Ideas?
Thx
First of all, loving datatables. Saved me a TON of work, however, I cannot change the height of the datatable itself.
I have the following:
[code]
"sScrollY": "200",
"bScrollCollapse": true,
iDisplayLength": 10,
"asStripClasses": [ 'odd', 'even' ],
"aaData": aDataSet_companynotes,
"aoColumns": aColumns_companynotes
[/code]
When there are 2 rows, the bottom (buttons, etc) come up to just under the last row. So far, so good. When there are more than 10, the scroll kicks in. So far, so good.
HOWEVER, any data (the DIV is inside a table cell) below that div is kept a certain height no matter what I do. I cannot bring the next TR up when the number of rows in the DIV is (for instance) 2. it always seems to be a certain height. When I have another DiV in a table row below this one, same issue. big gap between the end of where the div is and where the next tr begins drawing.
Ideas?
Thx
This discussion has been closed.
Replies
datatables_wrapper min height fixed it.