mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Specify float value in ParagraphLayoutManager (#37660)
Summary: React-Native-Windows had to override this file because we treat certain warning as errors. This fix adds in the "f suffix" to remove the unspecified float error. ## Changelog: [GENERAL] [FIXED] - Specify float value in ParagraphLayoutManager Pull Request resolved: https://github.com/facebook/react-native/pull/37660 Test Plan: Tested with RNW tests Reviewed By: NickGerleman Differential Revision: D46560099 Pulled By: javache fbshipit-source-id: de593cbe60677533f5194ab8fd7e650607b5829e
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3f7507bae9
commit
efc5f73f27
+1
-1
@@ -58,7 +58,7 @@ bool ParagraphLayoutManager::shoudMeasureString(
|
||||
|
||||
bool hasMaximumSizeChanged =
|
||||
layoutConstraints.maximumSize.width != lastAvailableWidth_;
|
||||
Float threshold = 0.01;
|
||||
Float threshold = 0.01f;
|
||||
bool doesMaximumSizeMatchLastMeasurement =
|
||||
std::abs(
|
||||
layoutConstraints.maximumSize.width -
|
||||
|
||||
Reference in New Issue
Block a user