Skip to content

Commit

Permalink
Merge pull request #1 from ValuesFeng/master
Browse files Browse the repository at this point in the history
fix a bug that dynamic height in headerview
  • Loading branch information
w446108264 committed Apr 11, 2016
2 parents 13687cb + dd28957 commit fa043ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ and:

```xml
dependencies {
compile 'com.github.w446108264:ScrollableLayout:1.0.1'
compile 'com.github.w446108264:ScrollableLayout:1.0.1'
}
```
--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ public ScrollableLayout(Context context, AttributeSet attrs, int defStyleAttr) {

@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
if(mHeadView == null){
mHeadView = getChildAt(0);
mHeadView = getChildAt(0);
if(mHeadView != null){
measureChildWithMargins(mHeadView, widthMeasureSpec, 0, MeasureSpec.UNSPECIFIED, 0);
maxY = mHeadView.getMeasuredHeight();
mHeadHeight = mHeadView.getMeasuredHeight();
Expand Down

0 comments on commit fa043ea

Please sign in to comment.