Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Sep 2010
    Posts
    3
    Vote Rating
    0
    pankajdang is on a distinguished road

      0  

    Default [FNR] Grid horizontal scrollbar not working properly

    [FNR] Grid horizontal scrollbar not working properly


    Ext version tested:
    • Gxt2.2.0
    Adapter used:
    • ext
    css used:
    • only default ext-all.css

    Browser versions tested against:
    • ____
    • IE7
    • FF3 (firebug 1.3.0.10 installed)
    Operating System:
    • WinXP Pro
    Description:
    • In my application i have two many columns in grid so it shows horizontal scroll bar now if i scroll horizontal scroll bar and Select row sometime what it does it take back the horizontal scroll bar to starting. same issue is there in Ext GWT example.
    Steps to reproduce the problem:
    • click on basic grid.
    • re-size width of one column so that its start showing horizontal scroll.
    • now select rows after selecting row 5-6 times or may be in first time its move the horizontal scroll back to start position.
    The result that was expected:
    • if user clicks on any row it should not move the horizontal scroll to start.
    The result that occurs instead:
    • selecting row 5-6 times or may be in first time its move the horizontal scroll back to start position.

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Please try to follow the bug posting guidelines, I'm having hard time following you.

  3. #3
    Ext User
    Join Date
    Sep 2010
    Posts
    3
    Vote Rating
    0
    pankajdang is on a distinguished road

      0  

    Default Grid horizontal scroll not workin

    Grid horizontal scroll not workin


    As per my knowledge issue could be due the fact its calling handleMouseDown function of GridSelectionModel on mousedown in that its calling focusCell function of gridview class. focuscell function takes three parameter rowIndex, colIndex and one boolean hscroll. Value of Hscroll is "true". focusCell function is calling ensureVisible function and passing all the three parameters as it is. so as Hscroll is true EnsureVisible function does some manipulation on horizontal scroll and scroll it to start.

    Could somebody please update me whether my finding is correct or not as i am in urgent need of solution.

  4. #4
    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


    If you click on the first cell, than it will make that cell visible and so adjusts horizontal scrolling. Is that what you are describing? If you always click the second cell, it wont scroll.

    However it should not scroll, i updated the code.

  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


    Fix is in SVN as of revision 2226 for GXT 2.2.1

  6. #6
    Ext User
    Join Date
    Sep 2010
    Posts
    3
    Vote Rating
    0
    pankajdang is on a distinguished road

      0  

    Default


    Bug i am describing is that if we have a grid and there is horizontal scroll and user move the horizontal scroll to end and click to select different different row and keeps on doing the same after doing 5-6 times it moves back horizontal scroll back to starting.

    you can get the same issue in the demo shown for ext gwt basic grid example also, there is no horizontal scroll to produce bug so you need to increase width of any column such that its start showing horizontal scroll.

    i hope above information should clarify you bug in more details.

    kindly update me what workaround i should follow to fix the above issue.

  7. #7
    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


    The workaround would be to change the GridSelectionModel and call ensureVisible with the hscroll attribute set to false (this change is also in SVN already).

Similar Threads

  1. Replies: 1
    Last Post: 15 Mar 2010, 5:06 AM
  2. horizontal scrollbar in grid
    By michael melsen in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 27 Oct 2009, 3:42 AM
  3. grid / horizontal scrollbar :/
    By madinrno in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 15 Jul 2009, 6:38 AM
  4. How do I get a horizontal scrollbar to appear in my grid?
    By cgokey2 in forum Ext GWT: Help & Discussion (1.x)
    Replies: 2
    Last Post: 17 Apr 2009, 4:25 AM
  5. Replies: 0
    Last Post: 11 Jan 2009, 10:41 PM

Thread Participants: 2