@@ -235,7 +235,7 @@ function TooltipClass:CalculateColumns(ttY, ttX, ttH, ttW, viewPort)
235235 local curX = ttX + ttW / 2 - totalWidth / 2
236236 -- Draw title
237237 t_insert (drawStack , {curX , y + (titleSize - titleSize )/ 2 , " LEFT" , titleSize , font , title .text })
238- curX = curX + DrawStringWidth (titleSize , font , title .text ) + 6
238+ curX = curX + DrawStringWidth (titleSize , font , title .text ) + ( H_PAD / 2 )
239239
240240 -- Draw oils
241241 local maxOilHeight = 0
@@ -273,7 +273,7 @@ function TooltipClass:CalculateColumns(ttY, ttX, ttH, ttW, viewPort)
273273 if lineCentered == nil then
274274 lineCentered = self .center
275275 end
276- local lineX = lineCentered and (x + ttW / 2 ) or (x + 6 )
276+ local lineX = lineCentered and (x + ttW / 2 ) or (x + ( H_PAD / 2 ) )
277277 local lineAlign = lineCentered and " CENTER_X" or " LEFT"
278278
279279 t_insert (drawStack , {lineX , y , lineAlign , data .size , font , data .text })
@@ -287,7 +287,7 @@ function TooltipClass:CalculateColumns(ttY, ttX, ttH, ttW, viewPort)
287287 columns = columns + 1
288288 end
289289 currentBlock = data .block
290- t_insert (drawStack , {{ handle = data .separatorImage , isSeparator = true }, x + 6 , y , ttW - 12 , sepSize })
290+ t_insert (drawStack , {{ handle = data .separatorImage , isSeparator = true }, x + ( H_PAD / 2 ) , y , ttW - H_PAD , sepSize })
291291 y = y + sepSize + 2
292292
293293 elseif self .lines [i + 1 ] and self .lines [i - 1 ] and self .lines [i + 1 ].text then
0 commit comments