mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -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:
@@ -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(),
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user