]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: fix early return condition
authorJens Peters <jp7677@gmail.com>
Mon, 22 Jan 2024 22:14:25 +0000 (23:14 +0100)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 22 Jan 2024 22:27:08 +0000 (22:27 +0000)
src/view.c

index eaff46722daa2366c06b35720246dfdabd8e81ca..48493187dc39ee9bb11c32f46bfc521a504cc10c 100644 (file)
@@ -763,7 +763,7 @@ view_constrain_size_to_that_of_usable_area(struct view *view)
        }
 
        if (available_height >= view->pending.height &&
-                       available_width >= view->pending.height) {
+                       available_width >= view->pending.width) {
                return;
        }