1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Fix: centered horizontal layouts should never overflow upwards

This commit is contained in:
Emil Ernerfeldt
2021-03-21 10:31:18 +01:00
parent cc5ad1505c
commit ec9f374d8c
3 changed files with 56 additions and 9 deletions

View File

@@ -597,7 +597,7 @@ impl Tessellator {
{
return;
}
if rect.is_empty() {
if rect.is_negative() {
return;
}