NativeScript / NativeScript/NativeScript

Action bar has extra padding on top without status bar showing [Android] [NS 6.2]

Open
#8,081 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

os: android
Dominant language
TypeScript
Stars
25.7k
Forks
1.7k
Avg merge
1d 5h
Merged PRs (30d)
35

Description

Environment
{N} 6.2
Android 8.1.0

Describe the bug
Action bar always has extra padding on top even without status bar

To Reproduce
Create a Blank Angular&TypeScript app in Sidekick and run on an Android phone.
Hold and release the menu button on the phone, the app window becomes half height and status bar disappears and the Action bar remains with the extra padding on top.

Expected behavior
Actionbar height to be adjusted according to the presence of the status bar.

Sample project
Blank template app of Angular&Typescript

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Blank Angular and TypeScript template described in the issue and reproduce the behavior on Android 8.1 by hiding the status bar with the phone's menu button. The payload names no source file or test; done means the action bar no longer retains extra top padding when the status bar is absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, angular, typescript
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.