From 1e8031a0e8d7d9a5d0598fce148b5800f76b1fd7 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Tue, 14 Sep 2021 04:16:46 +0200 Subject: [PATCH] Fix checking if sibling is locked when removing `View`s We only checked if sibling was locked in the `x` direction. --- data/core/rootview.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 9d017268..836f9e9a 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -142,7 +142,8 @@ function Node:remove_view(root, view) local parent = self:get_parent_node(root) local is_a = (parent.a == self) local other = parent[is_a and "b" or "a"] - if other:get_locked_size() then + local locked_size_x, locked_size_y = other:get_locked_size() + if locked_size_x or locked_size_y then self.views = {} self:add_view(EmptyView()) else