Hybrid View

    You found a bug! We've classified it as EXTGWT-1933 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default A ProgressBarCell used in a grid doesn't resize according to the column width

    A ProgressBarCell used in a grid doesn't resize according to the column width


    Version of Ext GWT
    3.0 Release Candidate 2

    Browser versions and OS
    • Internet Explorer 8, FF11 & Chrome 18 on Windows 7 Professional SP1

    Virtual Machine
    No

    Description
    We use a ProgressBarCell to render percentage values in a certain grid column.

    Run mode
    Development/Production mode

    Steps to reproduce the problem
    1. Run the application.
    2. Resize the column (by dragging the column divider)

    Expected result
    The ProgressBarCell keeps showing the right percentage in text as well as in its blue/white proportions.

    Actual result
    The ProgressBarCell keeps showing the right percentage in its text only. It doesn't resize according to the grid cell's width.

    Test case
    Code: ProgressBarGrid.java, BaseExample.java & Progress.java

    Helpful Information



    Screenshot

    Debugging already done
    • In the constructor of ProgressBarCell we detected the line
      Code:
      this.width = 300;
      and indeed if we make the column 300 pixels wide, only then it looks OK.
      So apparently the width of the ProgressBarCell is not adapted when the column is resized.
      Although, since ProgressBarCell extends ResizeCell one would expect it to follow the vairiable column width.
      Or do we forget something?

  2. #2
    Sencha User WesleyMoy's Avatar
    Join Date
    Oct 2009
    Location
    Redwood City, California
    Posts
    402
    Vote Rating
    2
    WesleyMoy is on a distinguished road

      0  

    Default


    Thanks for pointing this out. I've filed a bug for one of the engineers to take a look at and will update here with any changes we make.

  3. #3
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default


    No update was posted in this thread.
    Nevertheless I read in the Release Notes of GXT 3.0.0 (where btw, currently the paragraph title "Bug Fixes" is missing)
    • [EXTGWT-1933] - Progress bar scales, but its value does not
    But when I run my test case again with GXT 3.0.0 I see that it is not solved.

    Rather confusing.

  4. #4
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default


    Any clarification from Sencha on this would really be appreciated

  5. #5
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    So apparently the width of the ProgressBarCell is not adapted when the column is resized.
    Although, since ProgressBarCell extends ResizeCell one would expect it to follow the vairiable column width.
    ResizeCell doe not mean that it resizes automatically. It means that you could resize it. Our datawidgets do not automatically resize their cells. You could listen to the ColumnWidthChange event and resize the cell manually for now.

  6. #6
    Ext GWT Premium Member gdlm's Avatar
    Join Date
    Jan 2012
    Location
    Belgium
    Posts
    208
    Vote Rating
    4
    gdlm is on a distinguished road

      0  

    Default


    >> Our datawidgets do not automatically resize their cells
    I hope you agree that in this case, as a user of the GXT lib, you expect the progress bar to nicely resize whenever the column width does without having to program anything extra.

    >> You could listen to the ColumnWidthChange event
    How is that done? By calling setColumnWidthChangeHandler()? On what object?

    >> and resize the cell manually for now.
    How?