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 authored and Ahmed El-Helw committed 2016-12-19 13:40:31 -08:00
1 parent 192c99a4f6
commit a4c4a88e27
11 files changed
+309 -418

No files matched your search

@@ -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;
}
}