fix map header and scrolling (#11054)

Checked across browsers and platforms. Crossing fingers now :D haha
This commit is contained in:
Dylan
2016-10-06 15:06:18 -05:00
committed by Justin Richardsson
parent d662d2234a
commit 982ffd5228
2 changed files with 19 additions and 3 deletions

View File

@@ -61,13 +61,17 @@ export class ShowMap extends PureComponent {
}
render() {
const { height, superBlocks } = this.props;
const { superBlocks } = this.props;
let height = 'auto';
if (!this.props.params) {
height = this.props.height + 'px';
}
return (
<Col xs={ 12 }>
<MapHeader />
<div
className='map-accordion center-block'
style={{ height: height + 'px' }}
style={{ height: height }}
>
{ this.renderSuperBlocks(superBlocks) }
<div className='spacer' />