mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
make widgets identical to their data definitions
This commit is contained in:
@@ -22,9 +22,9 @@ return function (self)
|
||||
nextSibling[dimension] - event[axis])
|
||||
end
|
||||
|
||||
prevSibling:reflow()
|
||||
nextSibling:reflow()
|
||||
self:reflow()
|
||||
prevSibling:reshape()
|
||||
nextSibling:reshape()
|
||||
self:reshape()
|
||||
end)
|
||||
|
||||
end
|
||||
|
||||
@@ -24,7 +24,7 @@ return function (self)
|
||||
self.value = (event.x - x1) / (x2 - x1)
|
||||
if self.value < 0 then self.value = 0 end
|
||||
if self.value > 1 then self.value = 1 end
|
||||
self:reflow()
|
||||
self:reshape()
|
||||
end
|
||||
|
||||
self:onPressStart(press)
|
||||
|
||||
Reference in New Issue
Block a user