Fixed positioning problem with tooltips on flags. Closes #2211.