Skip to content

Why paddingHorizontal: Math.max(left, right) in AppbarHeader ? #4535

@gavinliu

Description

@gavinliu

AppBar cannot align with content when screen orientation locked LANDSCAPE_LEFT

CleanShot 2024-10-25 at 23 11 27@2x

When orientation locked LANDSCAPE_RIGHT, align is ok.

CleanShot 2024-10-25 at 23 11 58@2x

Why Math.max ? It seems to be intentional, or may be a bug ?

https://github.com/callstack/react-native-paper/blob/9162a1fdf4e97c0669de8a8fa2057d8cfbe2e728/src/components/Appbar/AppbarHeader.tsx#L140C11-L140C52

Metadata

Metadata

Assignees

No one assigned

    Labels

    AppbarquestionQuestion related to the library, not an issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions