DataTables / FixedHeader

Fix the header, footer, left or right columns of a table in place, to always show them when scrolling
http://www.datatables.net/
Other
75 stars 83 forks source link

Outer width fix #35

Closed maksym-mikheienko closed 8 years ago

maksym-mikheienko commented 10 years ago

Guys, please consider replacing outerWidth() with outerWidth(true) or width(). I've experienced some examples where method call with no parameters have returned object itself and it caused errors. outerwidth

DataTables commented 10 years ago

That's weird - why would calling outerWidth() result in it returning anything other than an integer? The jQuery docs suggest that should be all that is returned: http://api.jquery.com/outerWidth/ .

Can you link to a test case?

maksym-mikheienko commented 10 years ago

Looks like it's jQuery 1.8.2 bug. Can't give an example. Full page is too complex but when I extract essentials it works fine.

DataTables commented 10 years ago

Can you confirm that the issue is resolved if you use a different version of jQuery?

maksym-mikheienko commented 10 years ago

I've plugged in the latest 1.11.1 jQuery and it worked fine.

DataTables commented 10 years ago

Super thanks for letting me know. If it is a jQuery bug and not present in the current releases, I'll not modify FixedHeader (call this a teflon bug ;-) ).