Skip to content

Commit

Permalink
fix PoweredBy height issue
Browse files Browse the repository at this point in the history
  • Loading branch information
metagrover committed Apr 19, 2017
1 parent fd3bbfa commit 83aa654
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions app/actuators/ResultCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class ResultCard extends Component {

if (resultElement && resultElement.length && scrollElement && scrollElement.length) {
scrollElement.css({
"height": "auto",
"height": "auto",
"padding-bottom": 0
});
setTimeout(checkHeight, 1000);
Expand Down Expand Up @@ -642,7 +642,7 @@ export default class ResultCard extends Component {
}

return (
<div ref={(div) => { this.resultListContainer = div }} className="rbc rbc-resultcard">
<div className="rbc rbc-resultcard">
<div ref={(div) => { this.listParentElement = div }} className={`rbc-resultcard-container card thumbnail ${cx}`} style={this.props.componentStyle}>
{title}
{sortOptions}
Expand All @@ -659,7 +659,7 @@ export default class ResultCard extends Component {
</div>
{this.props.noResults && this.state.visibleNoResults ? (<NoResults defaultText={this.props.noResults} />) : null}
{this.props.initialLoader && this.state.queryStart && this.state.showInitialLoader ? (<InitialLoader defaultText={this.props.initialLoader} />) : null}
<PoweredBy container={this.resultListContainer} />
<PoweredBy container="rbc-resultcard-container" />
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions app/actuators/ResultList.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export default class ResultList extends Component {

if (resultElement && resultElement.length && scrollElement && scrollElement.length) {
scrollElement.css({
"height": "auto",
"height": "auto",
"padding-bottom": 0
});
setTimeout(checkHeight, 1000);
Expand Down Expand Up @@ -662,7 +662,7 @@ export default class ResultList extends Component {
</div>
{this.props.noResults && this.state.visibleNoResults ? (<NoResults defaultText={this.props.noResults} />) : null}
{this.props.initialLoader && this.state.queryStart && this.state.showInitialLoader ? (<InitialLoader defaultText={this.props.initialLoader} />) : null}
<PoweredBy container={this.resultListContainer} />
<PoweredBy container="rbc-resultlist-container" />
</div>
);
}
Expand Down

0 comments on commit 83aa654

Please sign in to comment.