Author Topic: Clicking cell at bottom of grid moves it to be whole visible  (Read 5574 times)

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 30
    • View Profile
Clicking cell at bottom of grid moves it to be whole visible
« on: March 08, 2015, 03:29:27 pm »
Hello,

I can see that clicking the very bottom cell in your "cell selection" demo (which is partially hidden) causes the grid move vertically in order to have the selected cell completely visible. This is good and expected behavior.
But in my grid (which seems to use same parameters as in your demo) repositioning works wrong - it moves the bottom cell somewhere above top of visible area and somehow selects range from that cell to rowdndx+visible rows...

see screens.

Any help appreciated.

Thanks Jan

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #1 on: March 09, 2015, 09:42:31 am »
Which version are you using.

Could you please share a jsfiddle so that the issue could be reproduced.

http://jsfiddle.net/b6b710mz/9/

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #2 on: March 28, 2015, 07:40:24 pm »
Hello.

I am using 2.4.0.

See attached zip which contains wrong behavior sample. Just click on the bottom most row which is partially hidden.

Thanks,

Jan

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #3 on: March 28, 2015, 08:23:52 pm »
Could you include the missing dependencies and check whether your attached sample is working before posting.

or better please share a jsfiddle which already includes the required dependencies.

http://jsfiddle.net/b6b710mz/9/
« Last Edit: March 28, 2015, 08:25:44 pm by paramquery »

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #4 on: March 28, 2015, 08:43:58 pm »
Although my zip seems to work I have updated jsfiddle mentioned above. Error can be reproduced either there. Version 80

Thanks.
« Last Edit: March 28, 2015, 08:52:37 pm by [email protected] »

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #5 on: March 30, 2015, 03:16:26 pm »
Even though I couldn't reproduce exactly the issue as mentioned by you in that jsfiddle, I could see a slight variant of it i.e., when you press mouse button on the bottom cell and don't leave the button immediately it causes the view to scroll / redraw couple of times.

As a fix to above, please specify height of the icons used in rows.

<img src ="..imgPrint.gif" height = "xx" />

<img src ="..imgEdit.gif" height = "yy" />

[email protected]

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #6 on: April 01, 2015, 11:09:30 pm »
Hi.

Thank you for a reply, I have tried to use inline styles for images as recommended, but it did not help.
I saved here screen animations how can I reproduce the error.

http:\\www.optisoft.cz\tst\tst.htm

Jan

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Clicking cell at bottom of grid moves it to be whole visible
« Reply #7 on: April 02, 2015, 09:20:35 pm »
Yes I see that issue in IE which causes page scroll when clicked at the bottom cell.

though it works fine with virtualY: false.

Updated jsfiddle http://jsfiddle.net/b6b710mz/86/

I would keep checking and would let you know when I find a fix/workaround with virtualY: true.
« Last Edit: April 02, 2015, 09:31:15 pm by paramquery »