width: 100px after running the bDestroy
width: 100px after running the bDestroy
Kikketer
Posts: 3Questions: 0Answers: 0
I'm playing with using two separate divs that alternate back and forth in visibility (one covering the other). Each of these divs have a datatable in them. The table itself is being used for radically different uses each time (the two divs alternate to smooth page flipping animations).
I placed the bDestroy flag to true whenever I render the div. But I did notice in Chrome the browser detect seems to be failing but only after bDestroy. I can see the outcome from the style attribute on the table getting a "width: 100px".
Looking at the code, line 4921 of the uncompressed has some sort of browser detection because of some IE issues with 100%. Although it appears the oSettings.oBrowser.bScrollOversize is coming through as true before and after the bDestroy.
Is anyone else seeing this situation? Is there a better and absolute way of destroying the table?
I placed the bDestroy flag to true whenever I render the div. But I did notice in Chrome the browser detect seems to be failing but only after bDestroy. I can see the outcome from the style attribute on the table getting a "width: 100px".
Looking at the code, line 4921 of the uncompressed has some sort of browser detection because of some IE issues with 100%. Although it appears the oSettings.oBrowser.bScrollOversize is coming through as true before and after the bDestroy.
Is anyone else seeing this situation? Is there a better and absolute way of destroying the table?
This discussion has been closed.
Replies
[code]
/* Restore the width of the original table */
if ( oSettings.oFeatures.bAutoWidth === true )
{
oSettings.nTable.style.width = _fnStringToCss(oSettings.sDestroyWidth);
}
[/code]
> Is anyone else seeing this situation? Is there a better and absolute way of destroying the table?
Ideally you shouldn't really need to destroy the table at all :-). That should only be needed (at the moment) if you are adding and removing columns dynamically.
Allan
Also, I am "dynamically" changing the columns. I have about 10 reports that I'm dynamically loading to either of the two divs. The reports are crazy different from each other, and I'm not even guaranteed which div which report will appear on (they simply alternate depending on which one the user clicked on).