fix(tooltip): restore space between element and tooltip arrow

Tooltips positioned top and left lost their gap due to the class not
being applied before getting the offsetHeight and offsetWidth