Make sure tree popup is visible. Fixes #263.

Scroll map if the popup wouldn't be visible.