Skip to content

Commit

Permalink
Version 10.1.3
Browse files Browse the repository at this point in the history
- Fixes #61

- Fixes #51
  • Loading branch information
TuringTechnologies committed Aug 7, 2016
1 parent a0b7b45 commit 60f091d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'

def version = '10.1.1'
def version = '10.1.3'

install {
repositories.mavenInstaller {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,13 @@ public void getCurScrollState() {
if (materialScrollBar.recyclerView.getLayoutManager() instanceof GridLayoutManager) {
scrollPosState.rowIndex = scrollPosState.rowIndex / ((GridLayoutManager) materialScrollBar.recyclerView.getLayoutManager()).getSpanCount();
}
scrollPosState.rowTopOffset = materialScrollBar.recyclerView.getLayoutManager().getDecoratedTop(child);
scrollPosState.rowHeight = child.getHeight();
if(child == null){
scrollPosState.rowTopOffset = 0;
scrollPosState.rowHeight = 0;
} else {
scrollPosState.rowTopOffset = materialScrollBar.recyclerView.getLayoutManager().getDecoratedTop(child);
scrollPosState.rowHeight = child.getHeight();
}
}

}

0 comments on commit 60f091d

Please sign in to comment.