Skip to content

Commit

Permalink
*[android] update WXComponent.java fix position=fixed did not setLayout
Browse files Browse the repository at this point in the history
  • Loading branch information
xkli committed Apr 14, 2016
1 parent 9763aeb commit 3b9128c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,7 @@ public final void setLayout(WXDomObject domObject) {
}

//fixed style
if (mDomObj.isFixed()) {
if (mInstance.getRootView() != null) {
if (mDomObj.isFixed() && mInstance.getRootView()!=null) {
if (mHost.getParent() instanceof ViewGroup) {
ViewGroup viewGroup = (ViewGroup) mHost.getParent();
viewGroup.removeView(mHost);
Expand All @@ -396,8 +395,6 @@ public final void setLayout(WXDomObject domObject) {
WXLogUtils.d("Weex_Fixed_Style", "WXComponent:setLayout :" + realLeft + " " + realTop + " " + realWidth + " " + realHeight);
WXLogUtils.d("Weex_Fixed_Style", "WXComponent:setLayout Left:" + mDomObj.style.getLeft() + " " + (int) mDomObj.style.getTop());
}

}
return;
}

Expand Down

0 comments on commit 3b9128c

Please sign in to comment.