-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Context menu & hover box width is sometimes too narrow #6801
Comments
There's nothing random in your video - it seems to depend 100% on which element was clicked |
Not in the video, itself but
|
I could see this bug happening if the context menu changes content over time. If a given context menu is narrow the first time it is shown, it will remember this narrowness and then in the future break new elements to this width. If this is indeed the problem, there are few different fixes to consider: |
I suspect this only happens when pixels-per-point is non-integer, due to some rounding problem, perhaps same problem as in emilk/egui#5084. The idea would be: we lay out the contents of the popup with a wide I've tried to avoid this issue in epaint/egui by rounding text widths up to the nearest integer point width, but obviously there is still some bug somewhere. I'm investigating… |
* Had this fix in it: emilk/egui#5161 * #6801 is NOT fixed by this PR :( @Wumpf you had a pretty solid repro of this yesterday - please test 🙏 ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using examples from latest `main` build: [rerun.io/viewer](https://rerun.io/viewer/pr/7509?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [rerun.io/viewer](https://rerun.io/viewer/pr/7509?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! * [x] If have noted any breaking changes to the log API in `CHANGELOG.md` and the migration guide - [PR Build Summary](https://build.rerun.io/pr/7509) - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html) To run all checks from `main`, comment on the PR with `@rerun-bot full-check`. --------- Co-authored-by: Andreas Reich <andreas@rerun.io>
I think the original issue with shrinking menus was mostly solved by But for menus with dynamic content we need a proper fix for: The tooltip issue is a separate one: |
I'm not sure how I exactly got into this state, but the context appeared sometimes wide and sometimes narrow depending on the item:
context.menu.mp4
Once (not captured on video) I got an even narrower context menu which had only space for 1-2 characters.
(0.17rc2 @ Windows)
The text was updated successfully, but these errors were encountered: