cuba icon indicating copy to clipboard operation
cuba copied to clipboard

Table scrolls to bottom after saving changes in the editor dialog

Open Flaurite opened this issue 4 years ago • 0 comments

Environment

  • Platform version: 7.2
  • Client type: Web
  • Browser: Chrome, Opera, Edge, FireFox (scrolls but not to bottom)

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.

Flaurite avatar Nov 03 '21 08:11 Flaurite