Skip to content

Commit 1c21f31

Browse files
Merge pull request #944 from IgniteUI/mdd-update-azure-height
Mdd update azure height
2 parents 9866d36 + 6404bbc commit 1c21f31

File tree

1 file changed

+2
-2
lines changed
  • samples/maps/geo-map/display-azure-imagery/src

1 file changed

+2
-2
lines changed

samples/maps/geo-map/display-azure-imagery/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ export default class MapDisplayImageryAzure extends React.Component<any, any> {
5353
{/* Image or map */}
5454
<div style={{
5555
width: "100%",
56-
maxWidth: "960px",
56+
maxWidth: "100%",
5757
aspectRatio: "4 / 3",
5858
margin: "0 auto",
5959
position: "relative",
6060
overflow: "hidden"
6161
}}>
6262
{!this.state.mapVisible ? (
63-
<img src={currentStyle.placeholder} alt={this.state.styleName} style={{ width: "100%", height: "100%", objectFit: "cover" }} />
63+
<img src={currentStyle.placeholder} alt={this.state.styleName} style={{ maxWidth: "960px", height: "100%", objectFit: "contain", display: "block", margin: "0 auto" }} />
6464
) : (
6565
<IgrGeographicMap ref={r => this.geoMap = r!} width="100%" height="100%" zoomable={true} />
6666
)}

0 commit comments

Comments
 (0)