-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Content inside scroll view with contentInsetAdjustmentBehavior with incorrect height #23480
Comments
This comment has been minimized.
This comment has been minimized.
We're experiencing it as well and it's quite annoying, does anyone know any workaround? |
@1987cr Hi, thanks for reporting issue, I think it may designated behavior, contentInset adjustment don't change frame of component, which means distance between top text and bottom text is constant. |
Hey, @zhongwuzw, thanks for the comment. Could you clarify why do you think that's intended? Note that the intrinsic content size of the component inside is smaller than the remaining space, and that's why I also think it shouldn't add the extra height. If this content were bigger, then the behavior would be ok (and it is, I think). From a practical point of view, it just doesn't look well. If you have some small content inside a scroll view and then a button you want to pin at the bottom, and you want the scroll view to respect the safe area, you can't get the desired behavior, instead, the button will be pushed down more than it should. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
👋 Sent with GitHawk |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
👋 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
👋 |
having a similar issues. |
Btw, this also happens when |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Still there. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Hello? |
This is so annoying :( |
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
Is there any update on this? Still having this issue |
🐛 Bug Report
It seems that scroll view doesn't calculate properly the size of its container when
contentInsetAdjustmentBehavior
is set toautomatic
To Reproduce
Refer to this snack:
https://snack.expo.io/r1XhuwVBV
When
contentInsetAdjustmentBehavior
is set toautomatic
, the container view get's pushed from the top, but the container maintains the same height, so you have an extra scroll size that hides the bottom text.For reference, same code with
contentInsetAdjustmentBehavior
set tonever
:Expected Behavior
Content should just take the remaining space.
Code Example
https://snack.expo.io/r1XhuwVBV
Environment
The text was updated successfully, but these errors were encountered: