Support vertical and horizontal clipping with draw command managers.

Summary: Adds support for horizontal clipping, though the FlatViewGroup needs to be made aware still of which it is.

Reviewed By: ahmedre

Differential Revision: D3673501
This commit is contained in:
Seth Kirby
2016-08-08 17:53:57 -07:00
committed by Ahmed El-Helw
parent 192c99a4f6
commit a4c4a88e27
11 changed files with 309 additions and 418 deletions

View File

@@ -506,10 +506,10 @@ import com.facebook.react.views.view.ReactClippingViewGroupHelper;
top,
right,
bottom,
Math.round(left + mLogicalOffset.left),
Math.round(top + mLogicalOffset.top),
Math.round(right + mLogicalOffset.right),
Math.round(bottom + mLogicalOffset.bottom),
left + mLogicalOffset.left,
top + mLogicalOffset.top,
right + mLogicalOffset.right,
bottom + mLogicalOffset.bottom,
clipLeft,
clipTop,
clipRight,
@@ -547,4 +547,8 @@ import com.facebook.react.views.view.ReactClippingViewGroupHelper;
public boolean clipsSubviews() {
return false;
}
public boolean isHorizontal() {
return false;
}
}