Fix #3228: Codehints selection popup is positioned wrong when the font size is not standard

This is a fix for #3228, making code hint use the text height when positioning the hinting menu.