prevent map from collapsing completely; it's problematic when window loses focus