I have a table with some hidden rows and a clickable button that reveals those hidden rows. The problem is that, when I use the link, the rows get revealed but the body doesn't update its height. (But it does update when I open the chrome console and close it)
css:
table tr.hide-row {
display:none;
}
jquery:
$(document).on('click', 'a.openallrows', function(e) {
$('.hide-row').show();
e.preventDefault();
});
html
<table>
<tbody>
<tr>
<td colspan="4">visible</td>
</tr>
<tr class="hide-row">
<td>This is hidden</td>
<td>-</td>
<td>--</td>
<td>---</td>
</tr>
</tbody>
</table>
I have a lot of hidden rows. And when they all get shown, they overlap the page footer and that's not what I was going for..
Update!
<div class="grid" style="width: 272.5px; left: 0px; top: 10px; position: absolute;">
table is inside here
</div>
The table is inside a grid which has position absolute! The position is automatically added by BlocksIt.js