Code:
local e = CreateFrame("EditBox", "CFM_HeightBox", CFM_Config)
e:SetWidth(45)
e:SetHeight(18)
e:SetPoint("TOPRIGHT", CFM_Config, "TOPRIGHT", -5,-25)
e:SetBackdrop({
bgFile="",
edgeFile="Interface\\Tooltips\\UI-Tooltip-Border",
tile="true",
tileSize= 32,
edgeSize=10,
insets = {left=5, right=5, top=5, bottom=5}
})
e:SetAutoFocus(false)
e:SetFontObject("GameFontNormal")
e:SetMaxLetters(4)
e:SetText("9999")
e:RegisterEvent("OnEscapePressed")
e:RegisterEvent("OnEnterPressed")
e:SetScript("OnEnterPressed", function(self) self:ClearFocus() end)
e:SetScript("OnEscapePressed", function(self) self:ClearFocus() end)
EditBox appears and functions fine except the text is overlapping the left edge. Looking through the wiki and not seeing any indent settings so wondering how I can fix this.