From 2439011bbed87bd398a978a7929301ea23fd5f77 Mon Sep 17 00:00:00 2001 From: louiszawadzki Date: Tue, 19 Dec 2023 16:21:23 +0100 Subject: [PATCH] Force SRContentClip to be applied on texts --- .../ios/Sources/RCTTextViewRecorder.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-native-session-replay/ios/Sources/RCTTextViewRecorder.swift b/packages/react-native-session-replay/ios/Sources/RCTTextViewRecorder.swift index ed28132aa..9a7db517a 100644 --- a/packages/react-native-session-replay/ios/Sources/RCTTextViewRecorder.swift +++ b/packages/react-native-session-replay/ios/Sources/RCTTextViewRecorder.swift @@ -98,8 +98,10 @@ internal struct RCTTextViewWireframesBuilder: SessionReplayNodeWireframesBuilder // Clipping should be 0 to avoid the text from overflowing when the // numberOfLines prop is used. + // To apply clip(0 0 0 0) we set a negative clipping (which has no effect). + // TODO: RUM-2354 remove this when clip(0 0 0 0) is applied private var clip: SRContentClip { - let top = 0.0 + let top = -1.0 let left = 0.0 let bottom = 0.0 let right = 0.0