Results 1 to 2 of 2

Thread: Null Assignment in ColumnModel#getColumnWidth()

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTGWT-3112 in 2.3.1.
  1. #1
    Ext GWT Premium Member
    Join Date
    Feb 2011
    Posts
    1
    Vote Rating
    0
      0  

    Default Null Assignment in ColumnModel#getColumnWidth()

    When the GridView is rendered, the ColumnWidth of ColumnModel is read by ColumnModel#getColumnWidth(int colIndex).

    Code:
      /**  
       * Returns the column width.
       * 
       * @param colIndex the column index
       * @return the width
       */
      public int getColumnWidth(int colIndex) {
        ColumnConfig c = getColumn(colIndex);
        return c != null ? c.getWidth() : null;
      }
    If a Column is hidden, the ColumnConfig c is null and null is explicitly assigned to the primitive return value int.

    GXT 2.3

  2. #2
    Sencha - Support Team
    Join Date
    Jan 2012
    Location
    Arlington, WA
    Posts
    871
    Vote Rating
    24
      0  

    Default

    This has been fixed in the upcoming version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •