Fixing custom content screen not aligned properly in landscape

Bug: 26413100
Change-Id: I1a111c9d2b0dfdfbc3cbd566e5784a1ed2bb6719
This commit is contained in:
Sunny Goyal
2016-01-12 10:35:32 -08:00
parent e70fb6f8ef
commit ecdc24f6f6
2 changed files with 5 additions and 3 deletions

View File

@@ -819,7 +819,7 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
childWidthMode = MeasureSpec.EXACTLY;
childHeightMode = MeasureSpec.EXACTLY;
childWidth = getViewportWidth() - mInsets.left - mInsets.right;
childWidth = getViewportWidth();
childHeight = getViewportHeight();
}
if (referenceChildWidth == 0) {