Improved handling of zero-sized locked nodes on RootView

This commit is contained in:
rxi
2020-05-01 16:17:07 +01:00
parent ab8510291e
commit 885ed5f860
3 changed files with 8 additions and 7 deletions
+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