Skip to content

Commit

Permalink
* [android] bug fix - Loading layoutY
Browse files Browse the repository at this point in the history
  • Loading branch information
miomin committed Aug 31, 2016
1 parent 832cf5e commit a8f3c95
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,8 @@ public final void setLayout(WXDomObject domObject) {
mHost.setLayoutParams(params);
} else if(mParent.getRealView() instanceof BaseBounceView && this instanceof WXBaseRefresh) {
LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(realWidth,realHeight);
realTop = (int) (parentPadding.get(Spacing.TOP) - parentBorder.get(Spacing.TOP));
params.setMargins(realLeft, realTop, realRight, realBottom);
mHost.setLayoutParams(params);
} else if (mParent.getRealView() instanceof FrameLayout) {
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(realWidth, realHeight);
Expand Down

0 comments on commit a8f3c95

Please sign in to comment.