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

Fix header sizing issue #20

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

abey79
Copy link
Contributor

@abey79 abey79 commented Nov 7, 2023

The issue originates from mixing row heights (as returned by ui.text_style_height()) and font sizes, which appear to be slightly different things. This PR fixes this discrepancy, leading to correct (relative) header sizing.

The issue originates from mixing row heights (as returned by `ui.text_style_height()` and font size. This PR fixes this discrepancy, leading to correct (relative) header sizing.
@lampsitter lampsitter merged commit 1982fbb into lampsitter:master Nov 7, 2023
1 check passed
@lampsitter
Copy link
Owner

Thanks!

@abey79 abey79 deleted the antoine/fix-header-size branch November 8, 2023 07:15
abey79 added a commit to rerun-io/rerun that referenced this pull request Nov 8, 2023
### What

- Take advantage of
lampsitter/egui_commonmark#20 to use "correct"
headings in in-app quick start guides.
- Bump egui_commonmark to 0.9.2 which includes the PR above
- Fixes #3612

<img width="1305" alt="image"
src="https://github.com/rerun-io/rerun/assets/49431240/a4befe22-2675-4a8f-a5ca-38cec3141b13">


### 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 [demo.rerun.io](https://demo.rerun.io/pr/4178) (if
applicable)
* [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/4178)
- [Docs
preview](https://rerun.io/preview/85986f760b9d674ecb58917f1b77693f43d3c3bf/docs)
<!--DOCS-PREVIEW-->
- [Examples
preview](https://rerun.io/preview/85986f760b9d674ecb58917f1b77693f43d3c3bf/examples)
<!--EXAMPLES-PREVIEW-->
- [Recent benchmark results](https://ref.rerun.io/dev/bench/)
- [Wasm size tracking](https://ref.rerun.io/dev/sizes/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Markdown heading levels all have the same font size
2 participants