Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#13972 closed defect (fixed)

EnhancedGrid cookie plugin sets column width to 0 or negative values when setColumnVisibility is used

Reported by: sudhas Owned by: Evan
Priority: high Milestone: 1.7
Component: DojoX Grid Version: 1.6.1
Keywords: EnhancedGrid Cookie plugin columnWidth Cc:
Blocked By: Blocking:

Description

The test case is a modified version of test_enhanced_grid_cookie.html in dojo1.6.1. Add the following checkbox to the test page:

<input type="checkbox" onclick="(dijit.byId('grid')).layout.setColumnVisibility(1, !this.checked)" /> Hide column with idx = 1<br />

To reproduce the issue, hide the first column and reload the page. Un-checking the hide column checkbox would not show the first column, but when the space in between the 0th and 2nd columns is examined, it would contain the 1st column but with a width of -12px on firefox or 0px on chrome.

Change History (3)

comment:1 Changed 8 years ago by Evan

Resolution: fixed
Status: newclosed

In [26732]:

Fixes #13972 by considering the hidden columns

comment:2 Changed 8 years ago by Evan

Milestone: tbd1.7

comment:3 Changed 8 years ago by Evan

In [27288]:

Refs #13972 adding a sane check

Note: See TracTickets for help on using tickets.