diff --git a/src/content/components/TranslatePanel.js b/src/content/components/TranslatePanel.js index aa784fc..5f76e03 100644 --- a/src/content/components/TranslatePanel.js +++ b/src/content/components/TranslatePanel.js @@ -56,7 +56,8 @@ export default class TranslatePanel extends Component { componentWillReceiveProps = nextProps => { const isChangedContents = this.props.resultText !== nextProps.resultText || - this.props.candidateText !== nextProps.candidateText; + this.props.candidateText !== nextProps.candidateText || + this.props.position !== nextProps.position; if (isChangedContents && nextProps.shouldShow) this.setState({ shouldResize: true }); };