Skip to content

Root-level perspective transform causes blurry Popups and Flyouts #4466

Open
@aschultz

Description

@aschultz

PopupViewManager and FlyoutViewManager attempt to work around a z-index shadowing issue by forcing a translation along the Z axis. This interacts poorly with the PerspectiveTransform3D set on the React root view (ReactControl), causing Popups and Flyouts to scale and text to become blurry as their Z position increases.

The code in ReactControl.cpp and ReactRootControl.cpp says:

    // Xaml's default projection in 3D is orthographic (all lines are parallel)
    // However React Native's default projection is a one-point perspective.
    // Set a default perspective projection on the main control to mimic this.

However, while React Native's "transform" property supports a perspective setting, its not required. An orthographic transform should be possible.

I suspect this root-level transform should be removed in favor of components independently setting perspective if needed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions