Improved handling of zero-sized locked nodes on RootView

This commit is contained in:
rxi committed 2020-05-01 16:17:07 +01:00
1 parent ab8510291e
commit 885ed5f860
3 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -126,7 +126,7 @@ end
function View:draw_background(color)
local x, y = self.position.x, self.position.y
local w, h = self.size.x, self.size.y
renderer.draw_rect(x, y, math.ceil(w), math.ceil(h), color)
renderer.draw_rect(x, y, w + x % 1, h + y % 1, color)
end