mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Fix typo in docs of Ui::shrink_height_to_current() (#4672)
<!-- Please read the "Making a PR" section of [`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md) before opening a Pull Request! * Keep your PR:s small and focused. * The PR title is what ends up in the changelog, so make it descriptive! * If applicable, add a screenshot or gif. * If it is a non-trivial addition, consider adding a demo for it to `egui_demo_lib`, or a new example. * Do NOT open PR:s from your `master` branch, as that makes it hard for maintainers to add commits to your PR. * Remember to run `cargo fmt` and `cargo clippy`. * Open the PR as a draft until you have self-reviewed it and run `./scripts/check.sh`. * When you have addressed a PR comment, mark it as resolved. Please be patient! I will review your PR, but my time is limited! -->
This commit is contained in:
@@ -739,7 +739,7 @@ impl Ui {
|
||||
}
|
||||
|
||||
/// Helper: shrinks the max height to the current height,
|
||||
/// so further widgets will try not to be wider than previous widgets.
|
||||
/// so further widgets will try not to be taller than previous widgets.
|
||||
pub fn shrink_height_to_current(&mut self) {
|
||||
self.set_max_height(self.min_rect().height());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user