make slider slightly less ugly

This commit is contained in:
nobody
2016-02-08 14:31:30 -05:00
parent a5f1a9b1da
commit 1a75af526e
3 changed files with 17 additions and 13 deletions

View File

@@ -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