cuba-platform / cuba

CUBA Platform is a high level framework for enterprise applications development
https://www.cuba-platform.com
Apache License 2.0
1.34k stars 219 forks source link

Table scrolls to bottom after saving changes in the editor dialog #3244

Open Flaurite opened 3 years ago

Flaurite commented 3 years ago

Environment

Description of the bug or enhancement

En forum: topic

  1. Download: https://github.com/cuba-platform/sample-sales-cuba7
  2. Add forceDialog=“true” to dialogMode in product-edit.xml
  3. Start the application, create about 60 entities
  4. Set ‘Show rows’ to 100
  5. Scroll down so row 50 is the last in view, that leaves about 15 outside of view
  6. Select row 30, click ‘Edit’ and in the pop-up screen click ‘OK’.

AR Table scrolls to bottom.

Technical notes

1) After debugging client-side it turns out that browser generates ScrollEvent in the table. 2) If table is not expanded and uses fixed height (e.g. 500px) - bug is not reproduced.