0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 06:02:46 +00:00

Styled the page info

This commit is contained in:
Scott Tolksdorf
2016-05-09 10:57:23 -04:00
parent 30e6bb28ad
commit 1bd85e80ee
3 changed files with 16 additions and 11 deletions

View File

@@ -30,8 +30,6 @@ var BrewRenderer = React.createClass({
},
handleScroll : function(e){
console.log('sco');
this.setState({
viewablePageNumber : Math.floor(e.target.scrollTop / PAGE_HEIGHT)
});
@@ -55,7 +53,7 @@ var BrewRenderer = React.createClass({
renderPageInfo : function(){
return <div className='pageInfo'>
{this.state.viewablePageNumber} / {this.totalPages}
{this.state.viewablePageNumber + 1} / {this.totalPages}
</div>
},