fix the position when menu's css has a padding-top and padding-bottom