Skip to content

when in smartbar case the Dimensions ‘s height is not correct on Android #13031

Description

@tonyshengbo

when the devices have a smartbar,I handle the smartbar on/off, and js use Dimensions get height is not correct,
i saw the code in ReactRootView.java。it use the OnGlobalLayoutListener'callback to notify the js.
but the emitUpdateDimensionsEvent function use DisplayMetricsHolder.getWindowDisplayMetrics() always get the same vaule.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions