From ddd4791e8c39e2343c672e555f4564b875d00e7a Mon Sep 17 00:00:00 2001 From: hryx Date: Mon, 25 Mar 2013 23:15:50 -0700 Subject: Fix vertical Slider Slider, when vertical, was drawing the grab box with inverted position. Center "track" had incorrect orientation. Also, slider.lua was passing a bunk table to group.getRect(). --- slider.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slider.lua') diff --git a/slider.lua b/slider.lua index 1a0ef77..4700ae5 100644 --- a/slider.lua +++ b/slider.lua @@ -39,7 +39,7 @@ return function(w) local fraction = (w.info.value - w.info.min) / (w.info.max - w.info.min) local id = w.id or core.generateID() - local pos, size = group.getRect(w.pos, w.info.size) + local pos, size = group.getRect(w.pos, w.size) mouse.updateWidget(id, pos, size, w.widgetHit) keyboard.makeCyclable(id) -- cgit v1.2.3-54-g00ecf