mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 22:43:10 +08:00
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:
committed by
Ahmed El-Helw
parent
192c99a4f6
commit
a4c4a88e27
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user