fix bug where popup window could scroll sideways when the map was displayed