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)
Tue, Nov 26, 3:26 AM
Unknown Object (File)
Tue, Nov 26, 3:25 AM
Unknown Object (File)
Sun, Nov 24, 7:24 PM
Unknown Object (File)
Sun, Nov 24, 6:33 PM
Unknown Object (File)
Sun, Nov 24, 3:52 PM
Unknown Object (File)
Sat, Nov 23, 6:47 PM
Unknown Object (File)
Mon, Nov 4, 12:21 PM
Unknown Object (File)
Oct 27 2024, 1:29 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
No Lint Coverage
Unit
No Test Coverage

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