You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A very slight modification to the 112 tutorial (add/delete/swap data) illustrates the problem.
In colDefs1 the 'company' field has width:60 and it works fine. colDefs2 has a column defined with the same name but with width:120 . When you swap the data to use colDefs2 it keeps the width of the company column at 60 rather than using the new value of 120.
It looks like there is some internal cache that gets reused when the column name is the same.
if(gridUtil.isNullOrUndefined(self.width)||!angular.isNumber(self.width)){if(gridUtil.isNullOrUndefined(colDef.width)){self.width='*';}[....]// Is a number, use it as the widthelse{self.width=colDef.width;}}}
If width is defined and a number, it isn't updated. Setting widths as percentages makes the demo work.
A very slight modification to the 112 tutorial (add/delete/swap data) illustrates the problem.
In colDefs1 the 'company' field has width:60 and it works fine. colDefs2 has a column defined with the same name but with width:120 . When you swap the data to use colDefs2 it keeps the width of the company column at 60 rather than using the new value of 120.
It looks like there is some internal cache that gets reused when the column name is the same.
http://plnkr.co/edit/kpn77emSbQLb4VbVe0XK?p=preview
The text was updated successfully, but these errors were encountered: