IgniteUI / ignite-ui

Ignite UI for jQuery by Infragistics
https://bit.ly/2kuu1fT
Other
477 stars 83 forks source link

igGrid - virtualScrollTo doesn't scroll to the very position if the position is not integer value. #2205

Open norikois opened 2 years ago

norikois commented 2 years ago

Description

igGrid - virtualScrollTo doesn't scroll to the very position if the position is not integer value.

Steps to reproduce

  1. Open the attached reproducible sample.
  2. Scroll vertically to around the row whose ID is 25 by dragging the scroll thumb.
  3. Click "button2" button. -> The current scroll position is displayed in the text box "hoji" just below the button. Make sure the scroll position has a subpixel precision. If it doesn't, repeat the steps 2 and 3 until it does.
  4. Click "button3" button. -> Observe the grid. And observe what is displayed in the text box "saki" as current scroll position.

Result

The grid slightly scrolls. The current scroll position in "saki" is different from that in "hoji".

Expected result

The grid doesn't scroll. The current scroll position in "saki" is same as that in "hoji".

Attachments

C_00226022_Sample4 (2).zip C_00226022_Sample4_Movie1.zip