-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HParams: Bug Fix - Ensure context menu always opens within the window (…
…#6474) ## Motivation for features / changes It was possible to open a context menu which would overflow the page. This actually lead to a strange CLS issue which looked pretty bad. Now the custom_modal component will check the size of the content once it has rendered and adjust its position to ensure it fits in the page. ## Screenshots of UI changes (or N/A) The context menu never overflows the window ![35353f79-2987-455b-af30-d05e1e29cefa](https://github.com/tensorflow/tensorboard/assets/78179109/aa44934c-7d51-4154-9e83-33b67d8e01b3) This also works at the bottom of the page but it doesn't come across as well in a screenshot ![image](https://github.com/tensorflow/tensorboard/assets/78179109/0158dbbf-2507-4ed9-92ca-a4293f94887d)
- Loading branch information
1 parent
5004d78
commit 7c365cb
Showing
2 changed files
with
80 additions
and
0 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