You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/10/17 07:43:19 UTC
[GitHub] YorkShen commented on a change in pull request #1641:
[WEEX-646][Android] fix loading disappear when refresh more than one time
YorkShen commented on a change in pull request #1641: [WEEX-646][Android] fix loading disappear when refresh more than one time
URL: https://github.com/apache/incubator-weex/pull/1641#discussion_r225811461
##########
File path: android/sdk/src/main/java/com/taobao/weex/ui/component/WXLoading.java
##########
@@ -60,6 +60,16 @@ public void onLoading() {
}
}
+ @Override
+ protected void setHostLayoutParams(WXFrameLayout host, int width, int height,
+ int left, int right, int top, int bottom) {
+ // The view of WXLoading will always be wrapped by a WXRefreshView at some point
+ // which is unknowable for front-end so the margins should always be 0 in LayoutParams,
+ // otherwise it will bring visible layout errors. This means WXLoading do not
+ // support margin.
+ super.setHostLayoutParams(host, width, height, 0, 0, 0, 0);
Review comment:
why top=bottom=0 ?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services