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
+1 -1
View File
@@ -597,7 +597,7 @@ impl Tessellator {
{
return;
}
if rect.is_empty() {
if rect.is_negative() {
return;
}