scissor me baby

This commit is contained in:
airstruck
2015-12-08 17:14:49 -05:00
parent d11ea06503
commit 5e6cd8c29e
12 changed files with 138 additions and 71 deletions

View File

@@ -8,7 +8,7 @@ between 0 and 1 (inclusive) to change the width of the bar.
--]]--
return function (self)
self.value = 0
self.value = self.value or 0
local pad = self:addChild {
width = 0,
@@ -35,7 +35,7 @@ return function (self)
y1 = y1 + min
bar.width = false
bar.height = false
pad.height = h - (self.value * (y2 - y1) + min)
pad.height = math.ceil(h - (self.value * (y2 - y1) + min))
end
end)
end