-
Notifications
You must be signed in to change notification settings - Fork 405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix #1631. Implemented full screen button #1638
Conversation
offtherailz
commented
Mar 24, 2017
•
edited
Loading
edited
- Fix Geometric operation DWITHIN and WITHIN returns wrong results #1931. Full screen button added to desktop, embedded and mobile versions
- Now all modals and dialogs work in embedded and fullscreen mode
- Review of zoomto icon (too similar to full screen)
- Added tutorial step for fullscreen button
@@ -153,7 +153,7 @@ const SettingsModal = React.createClass({ | |||
|
|||
if (this.props.settings.expanded) { | |||
return this.props.asModal ? ( | |||
<Modal {...this.props.options} show={this.props.settings.expanded} container={document.getElementById("body")}> | |||
<Modal {...this.props.options} container={document.querySelector(".ms2 > #container") } show={this.props.settings.expanded}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cannot be fixed, at least it should be a property, better if it's not spread into every dialog. We should find a way to make it transparent. ms2 is overridable. #container is worse, this is a container, we cannot know the name, and we don't want to know it
@@ -162,7 +162,7 @@ const SettingsModal = React.createClass({ | |||
{footer} | |||
</Modal.Footer> | |||
</Modal> | |||
) : (<Portal><Dialog id={this.props.id} style={this.props.panelStyle} className={this.props.panelClassName}> | |||
) : (<Portal container={document.querySelector(".ms2 > #container") }><Dialog id={this.props.id} style={this.props.panelStyle} className={this.props.panelClassName}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -86,6 +86,7 @@ const InfoButton = React.createClass({ | |||
}, | |||
render() { | |||
const dialog = this.props.useModal ? (<Modal | |||
container={document.querySelector(".ms2 > #container") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look at hard coded stuff
- Full screen button added to desktop, embedded and mobile versions - Now all modals and dialogs work in embedded and fullscreen mode - Review of zoomto icon (too similar to full screen) - Added tutorial step for fullscreen button
package.json
Outdated
@@ -151,6 +151,7 @@ | |||
"redux-undo": "0.5.0", | |||
"reselect": "2.5.1", | |||
"rxjs": "5.1.1", | |||
"screenfull": "^3.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove ^
// this.onGridClose(true); | ||
}}> | ||
<Modal | ||
container={document.querySelector(".ms2 > #container") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove
@@ -29,7 +29,7 @@ const GeocodeViewer = (props) => { | |||
onClick={() => props.showRevGeocode({lat: props.latlng.lat, lng: lngCorrected})} > | |||
{props.identifyRevGeocodeSubmitText} | |||
</Button> | |||
<Modal {...props.modalOptions} show={props.showModalReverse} bsSize="large" container={document.getElementById("body")}> | |||
<Modal {...props.modalOptions} show={props.showModalReverse} bsSize="large" container={document.querySelector(".ms2 > #container") }> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove container
@@ -80,7 +80,7 @@ const QueryToolbar = React.createClass({ | |||
<span><strong><I18N.Message msgId={"queryform.query"}/></strong></span> | |||
</Button> | |||
</ButtonToolbar> | |||
<Modal show={this.props.showGeneratedFilter ? true : false} bsSize="large"> | |||
<Modal container={document.querySelector(".ms2 > #container") } show={this.props.showGeneratedFilter ? true : false} bsSize="large"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove container
@@ -61,7 +61,7 @@ const ActiveRuleModal = React.createClass({ | |||
const titleMsgId = "rulesmanager." + status + "Modal"; | |||
const buttonMsgId = "rulesmanager." + status + "Button"; | |||
return ( | |||
<Modal show={showModal} {...this.props} bsSize="small"> | |||
<Modal container={document.querySelector(".ms2 > #container") } show={showModal} {...this.props} bsSize="small"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove container
@@ -101,7 +101,9 @@ const PasswordResetModal = React.createClass({ | |||
}, | |||
render() { | |||
return ( | |||
<Modal {...this.props.options} show={this.props.show} onHide={this.props.onClose}> | |||
<Modal | |||
container={document.querySelector(".ms2 > #container") } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove container
@@ -0,0 +1,36 @@ | |||
/** | |||
* Copyright 2015, GeoSolutions Sas. | |||
* All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2015 to 2017
web/client/plugins/FullScreen.jsx
Outdated
@@ -0,0 +1,48 @@ | |||
/* | |||
* Copyright 2016, GeoSolutions Sas. | |||
* All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
web/client/epics/fullscreen.js
Outdated
@@ -0,0 +1,56 @@ | |||
/* | |||
* Copyright 2016, GeoSolutions Sas. | |||
* All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here --> 2017