mirror of
https://github.com/airstruck/luigi.git
synced 2025-12-19 02:16:43 +00:00
make slider slightly less ugly
This commit is contained in:
@@ -73,8 +73,6 @@ return function (self)
|
||||
self:onReshape(function (event)
|
||||
local x1, y1, w, h = self:getRectangle(true, true)
|
||||
local x2, y2 = x1 + w, y1 + h
|
||||
local dim = math.min(w, h)
|
||||
thumb.width, thumb.height = dim, dim
|
||||
if self.flow == 'x' then
|
||||
local halfThumb = thumb:getWidth() / 2
|
||||
x1, x2 = x1 + halfThumb, x2 - halfThumb
|
||||
|
||||
Reference in New Issue
Block a user