Auto Width false, but still not using size values?
Auto Width false, but still not using size values?
Hello Allan,
Can't believe you finished 1.7.4 so quickly. You really are a beast! :-)
I have bAutoWidth = false, and a value for each column width, however, they are still not being sized according to the size provided. I have sScrollX set to "100%".
Any thoughts on what I might need to do?
Thanks!
Patrick
Can't believe you finished 1.7.4 so quickly. You really are a beast! :-)
I have bAutoWidth = false, and a value for each column width, however, they are still not being sized according to the size provided. I have sScrollX set to "100%".
Any thoughts on what I might need to do?
Thanks!
Patrick
This discussion has been closed.
Replies
I haven't actually experimented much with auto width disabled for scrolling tables, although I will have a bit of a poke around with it later on. At the moment, my feeling is that autowidth is required for scrolling - although the other fixes I'll need to make for the next beta might change that...
Allan
I did trace through the code and found that everything is fine right up until in _fnScrollDraw. When this line executes,
nScrollHeadTable.style.width = $(o.nTable).outerWidth()+"px";
The table columns are resized to where the total of all column widths combined now equals the width of the visible table area.
I'll try now with auto sizing.
btw... having stepped through the code again, I'm more impressed by the release :-)
Auto Width didn't do anything. Still crunches down to fit into the table area. Not sure what I could be doing wrong. Everything seems fine until after the ajax call. Then the table goes through the rebuild and suddenly changes size.
and replace it with: o.nTable.style.width = $(o.nTable).outerWidth()+"px";
and see what happens...
It's not a perfect change, but this is the area I'll be working on later on for the next beta revision.
Allan
As an outsider looking in, I would think it would be easier to do the horizontal scrolling when the width wasn't auto width? If the width was wider than the container, scroll?
very cool work!