Home:ALL Converter>Dropdown on bottom of scrollable datatable adds extra space on click

Dropdown on bottom of scrollable datatable adds extra space on click

Ask Time:2015-11-27T13:35:40         Author:kim ss

Json Formatter

When combining a scrollable datatable and a bootstraps dropdown, clicking a dropdown on bottom of table adds additional white space to the scroll from the popup. I want the dropdown not to added space to the scroll and instead have it appear out of the table. Do you have any ideas on this problem. (it also occurred in boostrap calendar / selectpicker)

The only answer I found is to use dropup

here is sample code JSFIDDLE (click dropdown in the bottom of table)

$(document).ready(function() {
$('#test_Table').DataTable( {
    "scrollY":        "200px",
    "scrollCollapse": true,
    "paging":         false
} );

} );

jsfiddle Code

Author:kim ss,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/33950847/dropdown-on-bottom-of-scrollable-datatable-adds-extra-space-on-click
yy