1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-02 14:50:03 -04:00

Fix image button panicking with tiny available_space (#6900)

* Fixes <https://github.com/emilk/egui/issues/6772>
* [x] I have followed the instructions in the PR template
This commit is contained in:
Lucas Meurer
2025-04-30 10:40:50 +02:00
committed by GitHub
parent 1ab3259008
commit fdaac16e4a

View File

@@ -249,7 +249,7 @@ impl Widget for Button<'_> {
) )
} else { } else {
( (
ui.available_size() - 2.0 * button_padding, (ui.available_size() - 2.0 * button_padding).at_least(Vec2::ZERO),
default_font_height(), default_font_height(),
) )
}; };