From 43166fc5ae724f2672a40083e667e7fcfcac2b64 Mon Sep 17 00:00:00 2001 From: Edward Rudd Date: Fri, 8 Apr 2011 13:14:16 -0400 Subject: [PATCH] Add in option to force a scrollbar in the table body --- javascript/jquery.fixheadertable.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/javascript/jquery.fixheadertable.js b/javascript/jquery.fixheadertable.js index 7415ca7..5972d72 100644 --- a/javascript/jquery.fixheadertable.js +++ b/javascript/jquery.fixheadertable.js @@ -60,7 +60,9 @@ minColWidth : 100, - wrapper : true + wrapper : true, + + forceScroll : false }; var options = $.extend(defaults, options); @@ -631,7 +633,7 @@ var width = 0; - if (parseInt($(table).height()) > parseInt(options.height)) { + if (parseInt($(table).height()) > parseInt(options.height) || options.forceScroll) { width = scrollwidth;