adjust the ratio of tooltip