diff --git a/src/interface/index.js b/src/interface/index.js index 279ce37..7268028 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -175,9 +175,6 @@ class Interface extends React.Component { box.scale.set(dimensions.y, dimensions.z, dimensions.x); render(); } - if (setSize && nextProps.width !== this.props.width || nextProps.height !== this.props.height || nextProps.pixelRatio !== this.props.pixelRatio) { - setSize(nextProps.width, nextProps.height, nextProps.pixelRatio); - } } onResize = (width, height) => { @@ -189,14 +186,14 @@ class Interface extends React.Component { }; render() { - const { width, height, classes, onCompleteActions, defaultPrinter, defaultQuality, defaultMaterial } = this.props; + const { classes, onCompleteActions, defaultPrinter, defaultQuality, defaultMaterial } = this.props; const { sliced, isSlicing, progress, gcode, controlMode, settings, printers, quality, material } = this.state; return (