Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
metagrover committed Apr 25, 2017
2 parents 830f021 + 2783345 commit a5cad18
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 41 deletions.
4 changes: 2 additions & 2 deletions app/actuators/ResultCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class ResultCard extends Component {
function checkHeight() {
const flag = resultElement.get(0).scrollHeight - padding > resultElement.height();
const scrollFlag = scrollElement.get(0).scrollHeight > scrollElement.height();
if (!flag && !scrollFlag && scrollElement.length) {
if (!flag && !scrollFlag && scrollElement.length && !this.props.pagination) {
const scrollHeight = resultElement.height() - 100;
if (scrollHeight > 0) {
scrollElement.css({
Expand All @@ -190,7 +190,7 @@ export default class ResultCard extends Component {
"height": "auto",
"padding-bottom": 0
});
setTimeout(checkHeight, 1000);
setTimeout(checkHeight.bind(this), 1000);
}
}

Expand Down
4 changes: 2 additions & 2 deletions app/actuators/ResultList.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class ResultList extends Component {
function checkHeight() {
const flag = resultElement.get(0).scrollHeight - padding > resultElement.height();
const scrollFlag = scrollElement.get(0).scrollHeight > scrollElement.height();
if (!flag && !scrollFlag && scrollElement.length) {
if (!flag && !scrollFlag && scrollElement.length && !this.props.pagination) {
const scrollHeight = resultElement.height() - 100;
if (scrollHeight > 0) {
scrollElement.css({
Expand All @@ -190,7 +190,7 @@ export default class ResultList extends Component {
"height": "auto",
"padding-bottom": 0
});
setTimeout(checkHeight, 1000);
setTimeout(checkHeight.bind(this), 1000);
}
}

Expand Down
8 changes: 4 additions & 4 deletions dist/airbnb_recipe.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/ecommerce_recipe.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/meetup_recipe.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/news_recipe.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/producthunt_recipe.bundle.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/simplebeds_recipe.bundle.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dist/yelp_recipe.bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/simplebeds/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Main extends Component {
theme="rbc-red"
>
<nav>
<a href="/examples/airbeds" className="brand">Airbeds</a>
<a href="/examples/airbeds" className="brand">Simplebeds</a>
</nav>

<div className="sensor-wrapper clearfix">
Expand Down
4 changes: 2 additions & 2 deletions lib/actuators/ResultCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ var ResultCard = function (_Component) {
function checkHeight() {
var flag = resultElement.get(0).scrollHeight - padding > resultElement.height();
var scrollFlag = scrollElement.get(0).scrollHeight > scrollElement.height();
if (!flag && !scrollFlag && scrollElement.length) {
if (!flag && !scrollFlag && scrollElement.length && !this.props.pagination) {
var scrollHeight = resultElement.height() - 100;
if (scrollHeight > 0) {
scrollElement.css({
Expand All @@ -238,7 +238,7 @@ var ResultCard = function (_Component) {
"height": "auto",
"padding-bottom": 0
});
setTimeout(checkHeight, 1000);
setTimeout(checkHeight.bind(this), 1000);
}
}
}, {
Expand Down
4 changes: 2 additions & 2 deletions lib/actuators/ResultList.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ var ResultList = function (_Component) {
function checkHeight() {
var flag = resultElement.get(0).scrollHeight - padding > resultElement.height();
var scrollFlag = scrollElement.get(0).scrollHeight > scrollElement.height();
if (!flag && !scrollFlag && scrollElement.length) {
if (!flag && !scrollFlag && scrollElement.length && !this.props.pagination) {
var scrollHeight = resultElement.height() - 100;
if (scrollHeight > 0) {
scrollElement.css({
Expand All @@ -238,7 +238,7 @@ var ResultList = function (_Component) {
"height": "auto",
"padding-bottom": 0
});
setTimeout(checkHeight, 1000);
setTimeout(checkHeight.bind(this), 1000);
}
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@appbaseio/reactivesearch",
"version": "0.4.4",
"version": "0.4.5",
"description": "A React UI components library for building search experiences",
"main": "lib/app.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions umd/ReactiveSearch.js

Large diffs are not rendered by default.

0 comments on commit a5cad18

Please sign in to comment.