Page MenuHomePhabricator

[native] Fix ComposedMessage width constraint to only include content
ClosedPublic

Authored by ashoat on May 1 2023, 1:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 11:52 PM
Unknown Object (File)
Sat, Apr 27, 11:52 PM
Unknown Object (File)
Sat, Apr 27, 11:50 PM
Unknown Object (File)
Sat, Apr 27, 11:28 PM
Unknown Object (File)
Mar 28 2024, 8:18 AM
Unknown Object (File)
Mar 28 2024, 8:18 AM
Unknown Object (File)
Mar 28 2024, 8:17 AM
Unknown Object (File)
Mar 28 2024, 8:13 AM
Subscribers

Details

Summary

The avatar should not be part of the width constraint. The width constraint is only meant to apply to the content. This change fixes ENG-3826, and makes the width match for non-viewer and viewer (no avatar) messages.

Our ability to use this fix is actually kind of a coincidence... this diff sidesteps the issue more than anything. It's lucky we don't need to include avatar here... if we did, we would probably be facing a serious React Native bug. Including this simplified non-working example for future reference: https://gist.github.com/Ashoat/f0f00496d17db8df18c2cf21f753f469

Depends on D7697

Test Plan
beforeafter
Screenshot 2023-05-01 at 4.07.32 PM.png (1×1 px, 924 KB)
Screenshot 2023-05-01 at 4.05.17 PM.png (1×1 px, 951 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ashoat edited the test plan for this revision. (Show Details)
ashoat requested review of this revision.May 1 2023, 1:27 PM
This revision is now accepted and ready to land.May 1 2023, 1:47 PM

patched in the changes and played around with the views and everything looks good, no more bounds being overflown. Thanks for fixing this