borderLeftWidth and IE 6

21 views
Skip to first unread message

shams

unread,
Jun 26, 2009, 12:29:22 PM6/26/09
to Flexigrid for jQuery
Hi,

I've just recently started using the 1.0b3 version and I found an
issue on IE6.0

The issue is at the following line:
var nw = parseInt($(g.nBtn).width()) + parseInt($(g.nBtn).css
('borderLeftWidth'));
where $(g.nBtn).css('borderLeftWidth') returns 'medium' and hence
parseInt() fails to parse successfully.
This causes IE throw an exception the NaN is set as a left property
for css.

I noticed elsewhere in the code there are checks for isNan() and the
values are handled appropriately. I made the following change and
things started working for me:

var borderLeftWidthAsInt = parseInt($(g.nBtn).css('borderLeftWidth'));
if (isNaN(borderLeftWidthAsInt)) {
borderLeftWidthAsInt = 0
}
var nw = parseInt($(g.nBtn).width()) + borderLeftWidthAsInt;


Has anyone else faced anything similar? Is this a bug in code?

Thanks.

Charles Gilliland

unread,
Jul 19, 2009, 1:57:31 PM7/19/09
to Flexigrid for jQuery
I have replicated this in IE8 as well.

Also in IE8, none of the background images in the column headers show,
possibly a result of the issue described above.
Reply all
Reply to author
Forward
0 new messages