paulopmx / Flexigrid

Lightweight but rich data grid with resizable columns and a scrolling data to match the headers, plus an ability to connect to an xml/json based data source using Ajax to load the content.
689 stars 539 forks source link

last tr, divs in td do not get width assigned #117

Closed cleder closed 11 years ago

cleder commented 11 years ago

In the last tr no width are assigned to the divs inside the tds

this results in the table not being aligned to the header, there are some more issues here most likely related to this.

reproduce in a flexigrid loaded from json, check last row in firebug. All cells should be filled to reproduce this, (if the table has empty cells this gets confusing as there seems to be no pattern to where width is assigned and where not)

cleder commented 11 years ago

Update:

sometimes some divs in td do not get assigned width (regardless where they are located) after a resize of that column all elements have the correct width, moving the column has no effect.

cleder commented 11 years ago

reason is that in line 721

var n = $('td', $(this).parent()).index(this);

$('td', $(this).parent()) becomes [] so n == -1

cleder commented 11 years ago

it seems to be caused by 'bad Ids' removing the ids from my json fixes this as well as using 'better ids (in my case a uuid)