Skip to content

Commit

Permalink
Fixed print demo layout (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarto authored Jul 8, 2016
1 parent e766e67 commit d105a25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions web/client/examples/print/containers/Print.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const Print = React.createClass({
<PrintMap/>
{this.props.enabled ? <PrintPreview
title="Print Preview" style={{
width: "50%",
position: "absolute",
top: "10px",
left: "40px",
Expand All @@ -47,7 +46,7 @@ const Print = React.createClass({
});
module.exports = connect((state) => {
return {
enabled: state.map && state.print.capabilities,
enabled: state.map && state.print.capabilities && true || false,
locale: state.locale && state.locale.locale,
messages: state.locale && state.locale.messages || {}
};
Expand Down
4 changes: 4 additions & 0 deletions web/client/examples/print/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
right: -155px;
z-index: 1000;
}
.react-draggable {
position: absolute;
z-index: 1000;
}
</style>
</head>
<body>
Expand Down

0 comments on commit d105a25

Please sign in to comment.