Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: DH-15864: Scroll position StuckToBottom shouldn't trigger sharin…
…g dot (#1617) Reset `isStuckToBottom` and `isStuckToRight` in `dropLayoutMinorChange`. The flags are still stored in the shared layout, but don't trigger the sharing dot. Testing: - Open a new dashboard, add a table with more rows than fits on the screen - Share the dashboard layout with the table scrolled up, `isStuckToBottom` is `false` - Scroll the table to the bottom, confirm the Sharing dot doesn't appear even though the `isStuckToBottom` flag is now set to `true` - Click on the Sharing button, confirm the dialog shows the "Share updated state" message allowing to share the new `isStuckToBottom` state - Scroll the table up a few rows to get it un-stuck, confirm the blue dot still doesn't show up. Open the Sharing dialog, confirm the "Share update state" message disappeared since the current `isStuckToBottom` state matches the shared state - Scroll the table all the way down, discard the layout changes via the Sharing dialog, don't close the dialog. Confirm the table after discard is scrolled up (initial shared `isStuckToBottom: false` state restored).
- Loading branch information