Skip to content

Commit

Permalink
Lay out Decor content based on its current position.
Browse files Browse the repository at this point in the history
Possibly related to GH-4.

Signed-off-by: Eddie Ringle <[email protected]>
  • Loading branch information
EddieRingle committed Nov 16, 2012
1 parent 4319b9c commit cbdf6be
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,11 @@ protected void onLayout(boolean changed, int left, int top, int right, int botto
} else {
mDrawerContent.layout(left, 0, right, bottom);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
mDecorContent.layout(left, 0, right, bottom);
mDecorContent.layout(mDecorContent.getLeft(), 0,
mDecorContent.getLeft() + right, bottom);
} else {
mDecorContent.layout(left, top, right, bottom);
mDecorContent.layout(mDecorContent.getLeft(), top,
mDecorContent.getLeft() + right, bottom);
}
}

Expand Down

0 comments on commit cbdf6be

Please sign in to comment.