Skip to content

Absolutely positioned container does not shrink to fit children if a child contains flex-direction of row #21955

Closed
@bananatranada

Description

@bananatranada

Or if their child contains width: '100%'.

Dunno if I'm in that niche territory, but this has taken me a very long time to spot the source of the problem. I hope this can be fixed so that the next person doesn't have to.

Comment out either flexDirection: row or width under headerContent.
https://snack.expo.io/S1Pdpkgh7

And here's the expected behavior:
https://codepen.io/BANANATRANADA/pen/jeXoLj

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions