andycrespo27 / flexigrid

Automatically exported from code.google.com/p/flexigrid
0 stars 0 forks source link

On create table with no width columns in IE #26

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When you have an column with no width size like Id
e.g.:
colModel : [
        {
            display: 'Id',
            name : 'id',
            sortable : true,
            align: 'center'
        }, ...
2. On create table in IE 8 have error
3.

What is the expected output? What do you see instead?

Message: Invalid argument.
Line: 965
Char: 8
Code: 0
Id URI: http://localhost/adder7/branches/adder/js/flexigrid.js

What version of the product are you using? On what operating system?

Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 
2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
Sygnatura czasowa: Tue, 5 Apr 2011 07:36:57 UTC

Please provide any additional information below.

Solution:

Replace line 965:
$(thdiv).css({textAlign:this.align, width: this.width + 'px'});

With:
if(this.width > 0)                                                   
$(thdiv).css({textAlign:this.align, width: this.width + 'px'});

Original issue reported on code.google.com by piasecki...@gmail.com on 5 Apr 2011 at 7:44