map.invalidateSize() now called on detailpanel toggle