Skip to content

Commit 303d0e6

Browse files
committed
small fix
small fix for sliders throwing errors on creation
1 parent 12e981a commit 303d0e6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Basalt/objects/Slider.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ return function(name, basalt)
131131
self:addDraw("slider", function()
132132
local w,h = self:getSize()
133133
local bgCol,fgCol = self:getBackground(), self:getForeground()
134+
local obx, oby = self:getPosition()
134135
if (barType == "horizontal") then
135136
self:addText(index, oby, symbol:rep(symbolSize))
136137
if(symbolBG~=false)then self:addBG(index, 1, tHex[symbolBG]:rep(#symbol*symbolSize)) end

0 commit comments

Comments
 (0)