Merge "Sync ViewOverlay size init with RenderNode" into lmp-mr1-dev
This commit is contained in:
@@ -130,8 +130,11 @@ public class ViewOverlay {
|
|||||||
super(context);
|
super(context);
|
||||||
mHostView = hostView;
|
mHostView = hostView;
|
||||||
mAttachInfo = mHostView.mAttachInfo;
|
mAttachInfo = mHostView.mAttachInfo;
|
||||||
|
|
||||||
mRight = hostView.getWidth();
|
mRight = hostView.getWidth();
|
||||||
mBottom = hostView.getHeight();
|
mBottom = hostView.getHeight();
|
||||||
|
// pass right+bottom directly to RenderNode, since not going through setters
|
||||||
|
mRenderNode.setLeftTopRightBottom(0, 0, mRight, mBottom);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void add(Drawable drawable) {
|
public void add(Drawable drawable) {
|
||||||
|
|||||||
Reference in New Issue
Block a user