Skip to content
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

Clear empty containers after tile drag-and-drop #5044

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Feb 5, 2024

What

This PR triggers a egui_tile tree simplification of the viewport upon tile drag-and-drop to work around the spurious empty containers typically left behind after a move. This happens only when the additive workflow feature flag is set (otherwise, the on-going simplification takes care of that).

This simplification is agressive, and may delete (empty) containers that the user created on purpose, which is why we run it only on drag-and-drop. This is not ideal, but that's the best I can come up with until we stop using egui_tiles as application-level data structure. Still a net usability win.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG

@abey79 abey79 requested a review from jleibs February 5, 2024 16:26
@abey79 abey79 added ui concerns graphical user interface 🪳 bug Something isn't working include in changelog labels Feb 5, 2024
@abey79 abey79 merged commit bc400a6 into main Feb 6, 2024
42 of 44 checks passed
@abey79 abey79 deleted the antoine/simplify-on-tile-drop branch February 6, 2024 08:18
@teh-cmc teh-cmc changed the title Simplify viewport after tile drag-and-drop Clear empty containers after tile drag-and-drop Feb 6, 2024
abey79 added a commit that referenced this pull request Feb 6, 2024
abey79 added a commit that referenced this pull request Feb 6, 2024
### What

- Fixes #5061

### 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 newly built examples:
[app.rerun.io](https://app.rerun.io/pr/5064/index.html)
* Using examples from latest `main` build:
[app.rerun.io](https://app.rerun.io/pr/5064/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[app.rerun.io](https://app.rerun.io/pr/5064/index.html?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

- [PR Build Summary](https://build.rerun.io/pr/5064)
- [Docs
preview](https://rerun.io/preview/da3ca8a3ebf53647a43095c403a63b61007417c6/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/da3ca8a3ebf53647a43095c403a63b61007417c6/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working include in changelog ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants