From 405c14496a90e0c7ef8a9c88d795f04fca121a4c Mon Sep 17 00:00:00 2001 From: Alphonse Mariya Date: Fri, 27 Apr 2018 14:06:55 +0200 Subject: [PATCH] wibox.layout.flex: remove exit condition (#2252) --- lib/wibox/layout/flex.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/wibox/layout/flex.lua b/lib/wibox/layout/flex.lua index 797705e73..6dc240bab 100644 --- a/lib/wibox/layout/flex.lua +++ b/lib/wibox/layout/flex.lua @@ -98,14 +98,9 @@ function flex:layout(_, width, height) w, h = floor(space_per_item), height end - table.insert(result, base.place_widget_at(v, x, y, w, h)) - pos = pos + space_per_item + spacing - if (is_y and pos-spacing >= height) or - (is_x and pos-spacing >= width) then - break - end + table.insert(result, base.place_widget_at(v, x, y, w, h)) if k > 1 and spacing ~= 0 and spacing_widget then table.insert(result, base.place_widget_at(