-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grid cell resize from the edges (#6529)
**Problem:** Instead of having dedicated control handles for resizing a grid cell (when the child is filling/stretching the parent), we should use instead the same edge controls used for absolute move. **Fix:** 1. Factor out the edge components from the absolute resize controls into a hook `useResizeEdges`, and make it so it accepts custom event callbacks for the mouse interactions and which cursors to display while hovering 2. Replace the old grid edge handles in the grid controls with the new edges, hooking them up with the existing resize logic 3. Show the `ResizeCol`/`ResizeRow` cursors https://github.com/user-attachments/assets/8ae7eec6-ea33-4b4a-8445-f60390605302 Fixes #6528
- Loading branch information
Showing
10 changed files
with
314 additions
and
263 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.