summaryrefslogtreecommitdiff
path: root/src/ui/lookupwidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-04-27 13:25:44 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-04-27 13:25:44 +0300
commit379c1f8befcc30b72f0b50dcbd653704348e4761 (patch)
treea43c0d30f39e592237bf7f3b9c8fca26434128d0 /src/ui/lookupwidget.c
parent3846778c99d9efca609b7cb216cb71c675f036b0 (diff)
UI root sizing is independent of window sizing
Diffstat (limited to 'src/ui/lookupwidget.c')
-rw-r--r--src/ui/lookupwidget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ui/lookupwidget.c b/src/ui/lookupwidget.c
index f3fd54d2..7c3ebce2 100644
--- a/src/ui/lookupwidget.c
+++ b/src/ui/lookupwidget.c
@@ -654,8 +654,7 @@ static iBool processEvent_LookupWidget_(iLookupWidget *d, const SDL_Event *ev) {
654 (equal_Command(cmd, "layout.changed") && 654 (equal_Command(cmd, "layout.changed") &&
655 equal_Rangecc(range_Command(cmd, "id"), "navbar"))) { 655 equal_Rangecc(range_Command(cmd, "id"), "navbar"))) {
656 /* Position the lookup popup under the URL bar. */ { 656 /* Position the lookup popup under the URL bar. */ {
657 const iWindow *window = get_Window(); 657 const iInt2 rootSize = size_Root(get_Root());
658 const iInt2 rootSize = rootSize_Window(window);
659 const iRect navBarBounds = bounds_Widget(findWidget_App("navbar")); 658 const iRect navBarBounds = bounds_Widget(findWidget_App("navbar"));
660 setFixedSize_Widget(w, init_I2(width_Widget(findWidget_App("url")), 659 setFixedSize_Widget(w, init_I2(width_Widget(findWidget_App("url")),
661 (rootSize.y - bottom_Rect(navBarBounds)) / 2)); 660 (rootSize.y - bottom_Rect(navBarBounds)) / 2));