why tooltip position calc use magic number 5?