prevent tooltip from reaching over bottom window boundary