Menu

#4170 (ok 4.1.2) Overflow scroll for table grid is not a good solution

4.1.0
fixed
None
1
2013-12-23
2013-12-03
No

I understand the reason for horizonal scrolling of the table grid but if you have many columns and display 100 rows you can't scroll to the right.

you have to scroll the page down, scroll the table grid to the right , scroll the page up

Discussion

  • Marc Delisle

    Marc Delisle - 2013-12-05

    Do you have a better solution? I'm not sure if we can implement a horizontal scroll control, located on top.

     
  • Marc Delisle

    Marc Delisle - 2013-12-05

    What do you think of this example?
    http://jsfiddle.net/TBnqw/1/

     
  • Harald Leithner

    Harald Leithner - 2013-12-05

    the example makes no sense, because if you make ist 100 rows high you have the same problem in the middle.

    my idea where:
    make the table not bigger then the screen.
    For height calc I would take $screenheight - $topbarHeight

    so it fills the full screen but you still see the scrollbars.

     
  • Marc Delisle

    Marc Delisle - 2013-12-08

    Harald,
    when you suggest "not bigger than the screen", do you mean horizontally or vertically?

     
  • Harald Leithner

    Harald Leithner - 2013-12-08

    both ;-)

     
  • Harald Leithner

    Harald Leithner - 2013-12-08

    Something like this: http://jsfiddle.net/yKtDw/

     
  • Marc Delisle

    Marc Delisle - 2013-12-08

    What would happen in your scenario, when the user asks for 100 rows? There would be an inner vertical scroller?

    Hmm I had not seen your latest reply.

     

    Last edit: Marc Delisle 2013-12-08
  • Harald Leithner

    Harald Leithner - 2013-12-08

    yes, I Updated the jsfiddle: http://jsfiddle.net/yKtDw/1/

     
  • Smita Kumari

    Smita Kumari - 2013-12-12

    What about having a floating horizontal scrollbar as in the demo here http://jsfiddle.net/cowboy/45rEs/show/ ?? I think we should also have fixed table header so that we can see the column name even when we have scrolled deep down.

     
  • dennis1993

    dennis1993 - 2013-12-13

    I just wanted to report that no scrollbar is there. But now I have found them.
    That was much better in the 4.0.x versions.

    Why this change? Is it possible to undo this change again?
    This is a very unpleasant thing with lots of data.

    Example: I'm search for a data set an found it in the middle. Now I need the last col. I must go down, move to the right side and searching again... :) Not good...

    What's wrong with the earlier version?

    Thanks you!

     
  • Marc Delisle

    Marc Delisle - 2013-12-13
     
  • Harald Leithner

    Harald Leithner - 2013-12-13

    That would be a quick solution (see screenshot):
    < div style="position: relative;height: 600px; overflow: scroll;" class="data" >
    it would be simple to add the height to the div so it fits in to the screen.

    Its not perfect but better as the current state.

     

    Last edit: Harald Leithner 2013-12-13
  • dennis1993

    dennis1993 - 2013-12-14

    @Harald: Two vertical scrollbars? That's not good.

     
  • Harald Leithner

    Harald Leithner - 2013-12-14

    Quick and dirty and much better then the unusable version atm.

    The complete jQuery and ajax part is useless in so many cases in my opinion and I still use 3.x because 4.x is extrem slow makes strange things. For ex. it gives me a useless error message that the token is expired, instead it should give me a login field. Whatever seams only to be my personal problem.

     
  • Atul Pratap Singh

    Adding multiple innovative scrollbars seems overreaching, I suggest keeping it simple and reverting to how it was before fixing bug#4096[1] and just fixing the problem with navigation-resizing that is mentioned there.

    [1] https://sourceforge.net/p/phpmyadmin/bugs/4096

     
  • Marc Delisle

    Marc Delisle - 2013-12-19

    Atul,
    fine by me; would you like to work on this?

     
  • Atul Pratap Singh

    • assigned_to: Atul Pratap Singh
     
  • Justin Beasley

    Justin Beasley - 2013-12-20

    One of our developers came to me with this complaint as well. I'm not adversely affected because I use a combination of arrow keys, shift-mousewheel, and mousewheel click (free-scrolling mode). If the scrollbars are going to remain this way, it would be nice if the column headings were sticky (since this method of scrolling would allow that).

     
  • Marc Delisle

    Marc Delisle - 2013-12-20
    • summary: Overflow scroll for table grid is not a good solution --> (ok 4.1.2) Overflow scroll for table grid is not a good solution
    • status: open --> resolved
    • Priority: 5 --> 1
     
  • Atul Pratap Singh

    Justin,
    Please open a feature request for sticky column headings, sounds like a useful feature, even with the reverted scrolling.

     
  • Harald Leithner

    Harald Leithner - 2013-12-20

    Now its better, with sticky columns it would be perfect.

    thx

     

    Last edit: Harald Leithner 2013-12-20
  • Marc Delisle

    Marc Delisle - 2013-12-23
    • Status: resolved --> fixed