diff --git a/src/projects/detail/components/EditProjectForm.jsx b/src/projects/detail/components/EditProjectForm.jsx index ffa9a1133..70a9913df 100644 --- a/src/projects/detail/components/EditProjectForm.jsx +++ b/src/projects/detail/components/EditProjectForm.jsx @@ -100,6 +100,14 @@ class EditProjectForm extends Component { window.addEventListener('beforeunload', this.onLeave) } + autoResize() { + if (self.autoResizeSet === true) { return } + self.autoResizeSet = true + setTimeout(() => { + window.dispatchEvent(new Event('resize')) + }, 1000) + } + componentWillUnmount() { this.props.fireProjectDirtyUndo() window.removeEventListener('beforeunload', this.onLeave) @@ -107,8 +115,9 @@ class EditProjectForm extends Component { // Notify user if they navigate away while the form is modified. onLeave(e = {}) { + this.autoResize() if (this.isChanged()) { - // TODO: remove this block - it disables unsaved changes popup + // TODO: remove this block - it disables unsaved changes popup // for app screens changes if (this.refs.form){ const pristine = this.refs.form.getPristineValues() @@ -237,7 +246,7 @@ class EditProjectForm extends Component { value={ _.get(project, 'details.appDefinition.features', {})} /> - + ) } diff --git a/src/projects/detail/components/SpecQuestionList/SpecQuestionList.scss b/src/projects/detail/components/SpecQuestionList/SpecQuestionList.scss index 54d0b9ca0..77eb9287c 100644 --- a/src/projects/detail/components/SpecQuestionList/SpecQuestionList.scss +++ b/src/projects/detail/components/SpecQuestionList/SpecQuestionList.scss @@ -75,7 +75,7 @@ text-align: left; text-indent: 0; margin-bottom: 0; - line-height: 25px; + line-height: 24.5px; } .radio-group-input, diff --git a/src/projects/detail/components/SpecSection.jsx b/src/projects/detail/components/SpecSection.jsx index bf1fc0576..173fdf3bc 100644 --- a/src/projects/detail/components/SpecSection.jsx +++ b/src/projects/detail/components/SpecSection.jsx @@ -28,7 +28,7 @@ const SpecSection = props => { !subSection.hideTitle &&