diff --git a/app/actuators/ResultCard.js b/app/actuators/ResultCard.js index 92991edce9..602091927c 100644 --- a/app/actuators/ResultCard.js +++ b/app/actuators/ResultCard.js @@ -102,7 +102,7 @@ export default class ResultCard extends Component { // check the height and set scroll if scroll not exists componentDidUpdate() { - if (!this.state.showPlaceholder) { + if (!this.state.showPlaceholder && !this.props.scrollOnTarget) { this.applyScroll(); } } @@ -593,7 +593,15 @@ export default class ResultCard extends Component { }; helper.selectedSensor.set(obj, true, "sortChange"); } - + getComponentStyle() { + let componentStyle = {}; + if(this.props.scrollOnTarget) { + componentStyle.maxHeight = "none"; + componentStyle.height = "auto"; + } + componentStyle = Object.assign(componentStyle, this.props.componentStyle); + return componentStyle; + } render() { let title = null, placeholder = null, @@ -639,7 +647,7 @@ export default class ResultCard extends Component { return (