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().
This commit is contained in:
parent
43265a44ca
commit
ddd4791e8c
2 changed files with 12 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue