Fix error related to panes resize along y

This commit is contained in:
Francesco Abbate 2021-03-06 23:05:04 +01:00
parent 991db14877
commit 199476547b
1 changed files with 1 additions and 1 deletions

View File

@ -626,7 +626,7 @@ function RootView:on_mouse_moved(x, y, dx, dy)
x = common.clamp(x, 0, self.root_node.size.x * 0.95)
resize_child_node(node, "x", x, dx)
elseif node.type == "vsplit" then
y = common.clamp(x, 0, self.root_node.size.y * 0.95)
y = common.clamp(y, 0, self.root_node.size.y * 0.95)
resize_child_node(node, "y", y, dy)
end
node.divider = common.clamp(node.divider, 0.01, 0.99)