Skip to content

Commit

Permalink
Expose a getter for overflow setting in ReactViewGroup (#21398)
Browse files Browse the repository at this point in the history
Summary:
This change adds getter for overflow attribute in ReactViewGroup class. Overflow setting can affect how view children are drawn but also how hit testing behaves when receiving touch. Exposing this setting makes it possible for gesture-handler library to implement proper hit testing that takes into account overflow property of a view.
Pull Request resolved: #21398

Differential Revision: D10105398

Pulled By: shergin

fbshipit-source-id: 15ae2b31be3bf80e7e1d28b87ce4474af0f486f5
  • Loading branch information
kmagiera authored and facebook-github-bot committed Sep 28, 2018
1 parent ae4be91 commit 02ad56f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,10 @@ public void setOverflow(String overflow) {
invalidate();
}

public @Nullable String getOverflow() {
return mOverflow;
}

/**
* Set the background for the view or remove the background. It calls {@link
* #setBackground(Drawable)} or {@link #setBackgroundDrawable(Drawable)} based on the sdk version.
Expand Down

0 comments on commit 02ad56f

Please # to comment.