Skip to content

Commit

Permalink
Merge "Fix dividers for LinearLayout (TabWidget)"
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Powell authored and android code review committed Mar 2, 2012
2 parents 5aeb858 + 20761fc commit c7e5a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/java/android/widget/LinearLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void drawDividersVertical(Canvas canvas) {
if (child != null && child.getVisibility() != GONE) {
if (hasDividerBeforeChildAt(i)) {
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
final int top = child.getTop() - lp.topMargin;
final int top = child.getTop() - lp.topMargin - mDividerHeight;
drawHorizontalDivider(canvas, top);
}
}
Expand All @@ -334,7 +334,7 @@ void drawDividersHorizontal(Canvas canvas) {
if (child != null && child.getVisibility() != GONE) {
if (hasDividerBeforeChildAt(i)) {
final LayoutParams lp = (LayoutParams) child.getLayoutParams();
final int left = child.getLeft() - lp.leftMargin;
final int left = child.getLeft() - lp.leftMargin - mDividerWidth;
drawVerticalDivider(canvas, left);
}
}
Expand Down

0 comments on commit c7e5a2f

Please sign in to comment.