Skip to content

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

@tonyshengbo

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.

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