corrected hover icon calculation to take into account icon spacing and padding correctly - issue #316