Merge pull request #2952 from erik-f/master

wibox.container.margin: Allow nonnegative dimensions
This commit is contained in:
mergify[bot] 2019-12-28 09:42:25 +00:00 committed by GitHub
commit edd7d40545
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function margin:layout(_, width, height)
local resulting_width = width - x - w
local resulting_height = height - y - h
if resulting_width > 0 and resulting_height > 0 then
if resulting_width >= 0 and resulting_height >= 0 then
return { base.place_widget_at(self._private.widget, x, y, resulting_width, resulting_height) }
end
end