wibox.layout.flex: remove exit condition (#2252)

This commit is contained in:
Alphonse Mariya 2018-04-27 14:06:55 +02:00 committed by Daniel Hahler
parent b2f8c8df89
commit 405c14496a
1 changed files with 1 additions and 6 deletions

View File

@ -98,14 +98,9 @@ function flex:layout(_, width, height)
w, h = floor(space_per_item), height w, h = floor(space_per_item), height
end end
table.insert(result, base.place_widget_at(v, x, y, w, h))
pos = pos + space_per_item + spacing pos = pos + space_per_item + spacing
if (is_y and pos-spacing >= height) or table.insert(result, base.place_widget_at(v, x, y, w, h))
(is_x and pos-spacing >= width) then
break
end
if k > 1 and spacing ~= 0 and spacing_widget then if k > 1 and spacing ~= 0 and spacing_widget then
table.insert(result, base.place_widget_at( table.insert(result, base.place_widget_at(