diff --git a/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java b/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java index 762980571..92a5ee54a 100644 --- a/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java +++ b/main/src/main/java/com/yunbao/main/fragment/MainHomeCommunityFragment.java @@ -186,8 +186,10 @@ public class MainHomeCommunityFragment extends BaseFragment { view.loadUrl(jsUrl); view.reload(); } - - view.postDelayed(new Runnable(){ + int starHeight = UIUtils.getStatusBarHeight(mContext); + Log.e("网页高度 3 ", starHeight + ""); + view.loadUrl("javascript:setTop(" + starHeight + ")"); + /* view.postDelayed(new Runnable(){ @Override public void run() { int height = view.getMeasuredHeight(); @@ -196,7 +198,7 @@ public class MainHomeCommunityFragment extends BaseFragment { Log.e("网页高度", height + ""); view.loadUrl("javascript:setTop(" + 200 + ")"); } - },3000); + },3000);*/ } });