Skip to content

Commit

Permalink
Enforce positive minimum height of Flexigrid to avoid JS exceptions
Browse files Browse the repository at this point in the history
Firefox would silently ignore negative height values while IE throws an exception.
  • Loading branch information
ceari committed Jul 30, 2013
1 parent 9977a72 commit f2bc033
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@
});
*/
var bHeight = globalDiv.offsetParent().attr('offsetHeight') - p.heightOffset;
bHeight = bHeight > 50 ? bHeight : 50;
// adjust the flexigrid body (table) height
$(g.bDiv).css({ height: bHeight+"px"});
// adjust the column visibility menu height and width
Expand Down

0 comments on commit f2bc033

Please sign in to comment.