From 874a6baf7ddfd570417227c0e1c6c12ea264be9d Mon Sep 17 00:00:00 2001 From: gabrieljenik Date: Tue, 30 Sep 2014 17:04:37 -0300 Subject: [PATCH] Update jquery.tablescroll.js Check height is more than desired before continuing to manipulate the DOM. --- jquery.tablescroll.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jquery.tablescroll.js b/jquery.tablescroll.js index 7596b3f..d9bd45b 100644 --- a/jquery.tablescroll.js +++ b/jquery.tablescroll.js @@ -74,6 +74,10 @@ OTHER DEALINGS IN THE SOFTWARE. this.each(function() { var flush = settings.flush; + + // Check height is more than desired. + var tb = $(this); + if (tb.outerHeight() <= settings.height) return this; var tb = $(this).addClass('tablescroll_body');