Rename mIsOverflowVisible to a more descriptive mClipToBounds

Summary: A simple refactoring diff that should make code a little easier to read. No functional changes.

Reviewed By: ahmedre

Differential Revision: D2867718
This commit is contained in:
Denis Koroskin authored and Ahmed El-Helw committed 2016-12-19 13:40:20 -08:00
1 parent a52c89b01d
commit 74c72111f1
2 files changed
+5 -5

No files matched your search

@@ -48,7 +48,7 @@ import com.facebook.react.uimanager.ViewProps;
private @Nullable DrawView mDrawView;
private @Nullable DrawBackgroundColor mDrawBackground;
private int mMoveToIndexInParent;
private boolean mIsOverflowVisible = true;
private boolean mClipToBounds = false;
/* package */ void handleUpdateProperties(ReactStylesDiffMap styles) {
if (!mountsToView()) {
@@ -101,12 +101,12 @@ import com.facebook.react.uimanager.ViewProps;
@ReactProp(name = "overflow")
public void setOverflow(String overflow) {
mIsOverflowVisible = "visible".equals(overflow);
mClipToBounds = "hidden".equals(overflow);
invalidate();
}
public final boolean isOverflowVisible() {
return mIsOverflowVisible;
public final boolean clipToBounds() {
return mClipToBounds;
}
@Override