-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Problem:** The grid cell resize handles don't scale correctly with zoom < 1, and they get off-center if the element frame is too small. **Fix:** 1. Use a different rendering strategy for the elements (position: absolute instead of grid) so they can scale more easily when the relative container frame gets tiny 2. Hide the handles if the frame is too tiny (relative to the zoom too) 3. Hide the other three inactive edge handles when resizing is in progress, so they don't look off | Before | After | |--------|------------| | ![Kapture 2024-07-15 at 18 04 36](https://github.com/user-attachments/assets/6f919b88-4bd7-4592-b788-a0939eb96520) | ![Kapture 2024-07-15 at 18 03 10](https://github.com/user-attachments/assets/3778cebb-1ab0-409f-b256-21d7ed3300ef) | | https://github.com/user-attachments/assets/d6ba7995-c73e-4715-b4a1-1efb92ae3d5d | https://github.com/user-attachments/assets/a889a07b-60fa-4519-bd37-8001ca583f35 | _I have no idea why GH is truncating those GIFs, see the mp4 attachments for reference_ Fixes #6081
- Loading branch information
Showing
2 changed files
with
100 additions
and
69 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