From 68508e54e5707d6ab69cabf8413d58cd89531a38 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Sun, 19 Sep 2021 07:20:03 +0300 Subject: Widget: Scrolling tall widgets in vertical split Root's safe rect was not using the right origin coordinates. IssueID #337 --- src/ui/root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/root.c') diff --git a/src/ui/root.c b/src/ui/root.c index b00fab28..6ea5f521 100644 --- a/src/ui/root.c +++ b/src/ui/root.c @@ -1515,7 +1515,7 @@ iRect rect_Root(const iRoot *d) { } iRect safeRect_Root(const iRoot *d) { - iRect rect = { zero_I2(), size_Root(d) }; + iRect rect = rect_Root(d); #if defined (iPlatformAppleMobile) float left, top, right, bottom; safeAreaInsets_iOS(&left, &top, &right, &bottom); -- cgit v1.2.3