ingame/crafting/smithing_common.lua:247 -- control.titleLabel:SetHandler("OnTextChanged", function(titleLabel)
local titleWidth = titleLabel:GetTextWidth()
local totalWidth = control:GetWidth()
local TITLE_SELECTED_LABEL_PADDING_X = 10
local selectedLabelWidth = (totalWidth - titleWidth * 2) - TITLE_SELECTED_LABEL_PADDING_X * 2
selectedLabel:SetWidth(selectedLabelWidth)
end)