tables behind tabs...
tables behind tabs...
Hello Allan,
I'm using Yetii ( http://www.kminek.pl/lab/yetii/ ), and have a databale behind a tab.
Now I have tried with set widths and with %-ages, but either way does nto render the table correctly untill the page is refreshed.
Here is imy wee bit of JS which I am now trying ... which I am sure is wrong :) but is it possible if so help! :)
Cheers!
function customfunction(tabnumber) {
if (tabnumber==4) {
alert('You clicked tab number 4');
var oTable;
$(document).ready(function() {
oTable = $('#example').dataTable();
oTable.fnDraw();
});
}
}
var tabber1 = new Yetii({
id: 'hubtab',
persist: true,
callback: customfunction
});
I'm using Yetii ( http://www.kminek.pl/lab/yetii/ ), and have a databale behind a tab.
Now I have tried with set widths and with %-ages, but either way does nto render the table correctly untill the page is refreshed.
Here is imy wee bit of JS which I am now trying ... which I am sure is wrong :) but is it possible if so help! :)
Cheers!
function customfunction(tabnumber) {
if (tabnumber==4) {
alert('You clicked tab number 4');
var oTable;
$(document).ready(function() {
oTable = $('#example').dataTable();
oTable.fnDraw();
});
}
}
var tabber1 = new Yetii({
id: 'hubtab',
persist: true,
callback: customfunction
});
This discussion has been closed.
Replies
I'd support perhaps a couple of options to try:
1. Set a fixed width for your table using style="width:800px" or whatever
2. Set bAutoWidth to 0.
3. A combination of the two :-)
Hopefully that will do the trick for you. I'll have a think about how I might change the auto width algorithm to take this into account - but I don't really want to change the flow of the document as it might cause some unpleasant rendering side-effects... A tricky one.
Regards,
Allan