mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 10:26:43 +00:00
getRectangle returns x,y,w,h instead of x1,y1,x2,y2
This commit is contained in:
@@ -12,9 +12,9 @@ return function (self)
|
||||
end)
|
||||
|
||||
self:onReshape(function ()
|
||||
local x1, y1, x2, y2 = self:getRectangle(true, true)
|
||||
local x, y, w, h = self:getRectangle(true, true)
|
||||
local min = bar.minwidth
|
||||
x1 = x1 + min
|
||||
bar.width = self.value * (x2 - x1) + min
|
||||
x = x + min
|
||||
bar.width = self.value * w + min
|
||||
end)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user