Skip to content

Commit

Permalink
Merge pull request #84 from JonesChi/fix_shrink_dialog
Browse files Browse the repository at this point in the history
Fix dialog could not be shrinked if set paddingTop
  • Loading branch information
orhanobut committed Nov 9, 2015
2 parents 1a19f2f + 6b0842f commit fef2543
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static void animateContent(final View view, int to, Animation.AnimationListener
}

static boolean listIsAtTop(AbsListView listView) {
return listView.getChildCount() == 0 || listView.getChildAt(0).getTop() == 0;
return listView.getChildCount() == 0 || listView.getChildAt(0).getTop() == listView.getPaddingTop();
}

/**
Expand Down

0 comments on commit fef2543

Please sign in to comment.