Skip to content
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

Merged
merged 4 commits into from
Apr 3, 2017

Conversation

offtherailz
Copy link
Member

@offtherailz offtherailz commented Mar 24, 2017

@@ -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}>
Copy link
Contributor

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}>
Copy link
Contributor

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") }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

mbarto
mbarto previously requested changes Mar 24, 2017
Copy link
Contributor

@mbarto mbarto left a 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",
Copy link
Contributor

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") }
Copy link
Contributor

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") }>
Copy link
Contributor

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">
Copy link
Contributor

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">
Copy link
Contributor

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") }
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2015 to 2017

@@ -0,0 +1,48 @@
/*
* Copyright 2016, GeoSolutions Sas.
* All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@@ -0,0 +1,56 @@
/*
* Copyright 2016, GeoSolutions Sas.
* All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here --> 2017

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 77.244% when pulling be677d2 on offtherailz:fullscreen into 421a8af on geosolutions-it:master.

@offtherailz offtherailz merged commit 7ac597b into geosolutions-it:master Apr 3, 2017
@offtherailz offtherailz changed the title Fix #1931. Implemented full screen button Fix #1631. Implemented full screen button Apr 4, 2017
@offtherailz offtherailz deleted the fullscreen branch July 18, 2018 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants