Use window size instead of screensize for maximum size

Summary:
Changelog: [Internal]

This was set to screensize in D13104172 (https://github.com/facebook/react-native/commit/346c9d5f2c0fd99d6f05828d594d05bfaeed902f) to work around issues at that time.
The issues might not be around anymore.

Reviewed By: PeteTheHeat

Differential Revision: D23298723

fbshipit-source-id: 4f33a2cc65ae4fe5ba20b0b2b270b135878c339f
This commit is contained in:
Samuel Susla
2020-08-25 06:50:34 -07:00
committed by Facebook GitHub Bot
parent 258387ddaa
commit b7afbb1fe2
+2 -2
View File
@@ -55,8 +55,8 @@ using namespace facebook::react;
_rootTag = [RCTAllocateRootViewTag() integerValue];
_minimumSize = CGSizeZero;
// FIXME: Replace with `_maximumSize = CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX);`.
_maximumSize = RCTScreenSize();
_maximumSize = CGSizeMake(CGFLOAT_MAX, CGFLOAT_MAX);
_touchHandler = [RCTSurfaceTouchHandler new];