Skip to content

Why is the height property in StatusBar.getInfo() not typed #2349

@Chuuone

Description

@Chuuone

Bug Report

While wrestling with the StatusBar overlay behaviour and trying to fit it in my app for all scenarios. I accidentally came across the height property in the status bar info.

I am mostly curious if the plan is to keep this property or if its there for debug purposes. I actually found this extremely useful and having it solved all my problems. (I have tested 5 different android devices so far as well as some iOS with no issues)

See screenshot for type error..
Image

See screenshot for console log proving its there...
Image

Plugin(s)

Capacitor Version

   Capacitor Doctor   

Latest Dependencies:

  @capacitor/cli: 7.2.0
  @capacitor/core: 7.2.0
  @capacitor/android: 7.2.0
  @capacitor/ios: 7.2.0

Installed Dependencies:

  @capacitor/cli: 7.2.0
  @capacitor/ios: 7.2.0
  @capacitor/core: 7.2.0
  @capacitor/android: 7.2.0

[success] Android looking great! 👌
[error] Xcode is not installed

Platform(s)

Current Behavior

Expected Behavior

Code Reproduction

Other Technical Details

Additional Context

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