fix auto height of the map detail box.