Fix viewport resizing behaviour on layout change
This commit is contained in:
parent
9e7314e4a5
commit
ecbaddfa93
@ -18,7 +18,7 @@
|
|||||||
"prop-types": "^15.6.2",
|
"prop-types": "^15.6.2",
|
||||||
"query-string": "^6.2.0",
|
"query-string": "^6.2.0",
|
||||||
"react": "^16.4.1",
|
"react": "^16.4.1",
|
||||||
"react-cornerstone-viewport": "^0.1.3",
|
"react-cornerstone-viewport": "^0.1.4",
|
||||||
"react-dom": "^16.4.1",
|
"react-dom": "^16.4.1",
|
||||||
"react-redux": "^6.0.0",
|
"react-redux": "^6.0.0",
|
||||||
"react-router": "^4.3.1",
|
"react-router": "^4.3.1",
|
||||||
|
|||||||
@ -8,6 +8,7 @@ const mapStateToProps = state => {
|
|||||||
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
layout: state.viewports.layout,
|
||||||
activeViewportIndex: state.viewports.activeViewportIndex,
|
activeViewportIndex: state.viewports.activeViewportIndex,
|
||||||
activeTool: activeButton && activeButton.command
|
activeTool: activeButton && activeButton.command
|
||||||
};
|
};
|
||||||
|
|||||||
@ -118,7 +118,6 @@ class ViewerMain extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// TODO: Connect LayoutManager to redux
|
|
||||||
return (
|
return (
|
||||||
<div className="ViewerMain">
|
<div className="ViewerMain">
|
||||||
<ConnectedLayoutManager viewportData={this.state.viewportData} setViewportData={this.setViewportData}/>
|
<ConnectedLayoutManager viewportData={this.state.viewportData} setViewportData={this.setViewportData}/>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user