-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Username and poll title sometimes overlay on top of each other #5326
Comments
I looked into this issue some more. It's also reproducible by scrolling back to polls that didn't fit the initial screen. I initially thought the height computation in Using the view hierarchy debugger, it looks like the hosting view has the right size but the content inside it is pushed down. Long tapping the view to show the reactions overlay and then dismissing it fixes the layout (notably without changing the hosting view's position). I've tried forcing a re-layout in numerous places but haven't been successful so far. The "best" I could get to was using the Jul-03-2022.11-24-26.mp4 |
@pixlwave spotted that the hosting view's size of 238 differs from the view's intrinsic content size of 285 (the constraint of which is grayed out / inactive). Understanding that mismatch could help getting closer to the root cause. |
In the case above, the hosting view's layout height of 238 is a result of the encapsulated layout height of 257 (applied through the table view / On the one hand, this makes it look as if the height computation is wrong after all but, on the other, visually 238 appears to be enough to render the poll. 🤔 |
Fixes: #5326 Signed-off-by: Johannes Marbach <[email protected]>
It turns out that the hosting view adds safe area insets. 🤔 Some more info and a possible fix can be found in #6374. |
Steps to reproduce
Sometimes poll layout is broken with the username covering part of the poll title. Not sure how to trigger it.
Outcome
Your phone model
iPhoneX
Operating system version
iOS 14.6
Application version
Test Flight
Homeserver
No response
Will you send logs?
No
The text was updated successfully, but these errors were encountered: