I am trying to add an input box the the in-game addon options panel. I am adding the current value into the box, but it is off the left side of the box, so you cant see it unless you click the box and hit the left arrow so it scrolls. Any ideas why this might be happening?
Basically, the box appears empty, until you click it and scroll left.
I have tried adjusting the insets and centering the text in the box, neither of which worked.
Code:
CreateFrame("EditBox", "CR_EditBox_Stone", InterfaceOptionsFrame, "InputBoxTemplate")
CR_EditBox_Stone:SetWidth(30)
CR_EditBox_Stone:SetHeight(28)
CR_EditBox_Stone:SetAutoFocus(false)
CR_EditBox_Stone:SetNumeric(true)
CR_EditBox_Stone:SetMaxLetters(2)
CR_EditBox_Stone:SetFontObject("GameFontNormal")
CR_EditBox_Stone:SetPoint("TOPLEFT", CR_CheckButton_Stone, "BOTTOMLEFT", 0, 0)