Vertical scrolling in flexible layout issue
Vertical scrolling in flexible layout issue
There're two tables in the page as the following code shows.
[code]
A
B
[/code]
And the initialization code is:
[code]
$("#A, #B").dataTable({
aaData: d,
bJQueryUI: true, sPaginationType: "full_numbers", sDom: 't<"F"f>',
bAutoWidth: false, bPaginate: false, aaSorting: [],
asStripClasses: [],
oLanguage: DT_LANG,
aoColumns: tc,
sScrollY: 200
});
[/code]
When the page opens, everything looks fine. However, when I maximize the browser window, the data parts of the two tables expand to fill the enlarged space, but the header parts remain the same sizes.
Can the header resize with the body?
[code]
A
B
[/code]
And the initialization code is:
[code]
$("#A, #B").dataTable({
aaData: d,
bJQueryUI: true, sPaginationType: "full_numbers", sDom: 't<"F"f>',
bAutoWidth: false, bPaginate: false, aaSorting: [],
asStripClasses: [],
oLanguage: DT_LANG,
aoColumns: tc,
sScrollY: 200
});
[/code]
When the page opens, everything looks fine. However, when I maximize the browser window, the data parts of the two tables expand to fill the enlarged space, but the header parts remain the same sizes.
Can the header resize with the body?
This discussion has been closed.
Replies
http://datatables.net/forums/comments.php?DiscussionID=3234
http://datatables.net/forums/comments.php?DiscussionID=2697
Allan
The problem's solved by binding that fnAdjustColumnSizing function to the resize event.