-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement clientWidth/clientHeight in ReadOnlyElement #39305
Conversation
This pull request was exported from Phabricator. Differential Revision: D49008698 |
Base commit: 2608a37 |
This pull request was exported from Phabricator. Differential Revision: D49008698 |
Summary: Pull Request resolved: facebook#39305 This adds a new method in Fabric to get the inner size for an element (whole size excluding borders, which would be the scrollable size of the element), and uses it to implement the following methods as defined in react-native-community/discussions-and-proposals#607 : `clientWidth`: width of the element excluding the size of the left and right border. `clientHeight`: height of the element excluding the size of the top and bottom border. If the element isn't displayed or it has display: inline, it return `0` in both cases. These APIs provided rounded integers. Changelog: [internal] Reviewed By: mdvacca Differential Revision: D49008698 fbshipit-source-id: ba08978bb19fc3b639fbe0f1bd478b2c9497cb5b
db82427
to
02fad1e
Compare
This maybe a typo |
This pull request was exported from Phabricator. Differential Revision: D49008698 |
Summary: Pull Request resolved: facebook#39305 This adds a new method in Fabric to get the inner size for an element (whole size excluding borders, which would be the scrollable size of the element), and uses it to implement the following methods as defined in react-native-community/discussions-and-proposals#607 : `clientWidth`: width of the element excluding the size of the left and right border. `clientHeight`: height of the element excluding the size of the top and bottom border. If the element isn't displayed or it has display: inline, it return `0` in both cases. These APIs provided rounded integers. Changelog: [internal] Differential Revision: D49008698 fbshipit-source-id: a00851c55af21057bea228dee32be5175748b32f
02fad1e
to
8b9f857
Compare
This pull request was exported from Phabricator. Differential Revision: D49008698 |
Summary: Pull Request resolved: facebook#39305 This adds a new method in Fabric to get the inner size for an element (whole size excluding borders, which would be the scrollable size of the element), and uses it to implement the following methods as defined in react-native-community/discussions-and-proposals#607 : `clientWidth`: width of the element excluding the size of the left and right border. `clientHeight`: height of the element excluding the size of the top and bottom border. If the element isn't displayed or it has display: inline, it return `0` in both cases. These APIs provided rounded integers. Changelog: [internal] Reviewed By: NickGerleman Differential Revision: D49008698 fbshipit-source-id: 46304d16a70acf1f2e5da7dd74cded0dc41e9710
8b9f857
to
41036c8
Compare
Differential Revision: D48951824 fbshipit-source-id: b94b88af720ac95fc6fe5d5baf2bc2ede5e79ff7
Summary: Pull Request resolved: facebook#39305 This adds a new method in Fabric to get the inner size for an element (whole size excluding borders, which would be the scrollable size of the element), and uses it to implement the following methods as defined in react-native-community/discussions-and-proposals#607 : `clientWidth`: width of the element excluding the size of the left and right border. `clientHeight`: height of the element excluding the size of the top and bottom border. If the element isn't displayed or it has display: inline, it return `0` in both cases. These APIs provided rounded integers. Changelog: [internal] Reviewed By: NickGerleman Differential Revision: D49008698 fbshipit-source-id: e9fc54775f162809b026de23397df9cbe59d8d80
This pull request was exported from Phabricator. Differential Revision: D49008698 |
41036c8
to
e81a0a7
Compare
This pull request has been merged in f1e9a30. |
Summary:
This adds a new method in Fabric to get the inner size for an element (whole size excluding borders, which would be the scrollable size of the element), and uses it to implement the following methods as defined in react-native-community/discussions-and-proposals#607 :
clientWidth
: width of the element excluding the size of the left and right border.clientHeight
: height of the element excluding the size of the top and bottom border.If the element isn't displayed or it has display: inline, it return
0
in both cases.These APIs provided rounded integers.
Changelog: [internal]
Differential Revision: D49008698