Fix viewport resizing behaviour on layout change
This commit is contained in:
1 parent
9e7314e4a5
commit
ecbaddfa93
3 files changed
+2
-2
No files matched your search
@@ -8,6 +8,7 @@ const mapStateToProps = state => {
|
||||
const activeButton = state.tools.buttons.find(tool => tool.active === true);
|
||||
|
||||
return {
|
||||
layout: state.viewports.layout,
|
||||
activeViewportIndex: state.viewports.activeViewportIndex,
|
||||
activeTool: activeButton && activeButton.command
|
||||
};
|
||||
|
||||
@@ -118,7 +118,6 @@ class ViewerMain extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
// TODO: Connect LayoutManager to redux
|
||||
return (
|
||||
<div className="ViewerMain">
|
||||
<ConnectedLayoutManager viewportData={this.state.viewportData} setViewportData={this.setViewportData}/>
|
||||
|
||||
Reference in new issue
Block a user