Skip to content

Toolbar height in app header #3233

Closed

Description

@s3ppo

Bug, feature request, or proposal:

Bug

What is the expected behavior?

What is the current behavior?

Toolbar height switches when android keyboard appears in chrome for mobile

What are the steps to reproduce?

place Toolbar on top of app header -> place input field under it -> click input field -> when android keyboard appears, the toolbar switches from portrait to landscape and the height of the toolbar jumps
u can see it on my demosite. https://atippr.moniholz.at click in the loginform an watche the toolbar on top, when the keyboard appears

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, browsers are affected?

beta-2

Is there anything else we should know?

capture _2017-02-22-01-41-59
capture _2017-02-22-01-42-09

Activity

  1. joejordanbrown commented on Feb 22, 2017

    @joejordanbrown
    Contributor

    Adding overflow hidden to the body fixes this issue with onscreen keyboards pushing up the toolbar.

    body {
        overflow: hidden;
    }
    
  2. s3ppo commented on Feb 22, 2017

    @s3ppo
    Author

    thanks for your answer, i tried this, but no effect :(

  3. joejordanbrown commented on Feb 23, 2017

    @joejordanbrown
    Contributor

    Looking into this more the problem is with how media queries calculate the orientation: portrait and landscape. So when the virtual keyboard is opened, it resizes the viewport and the media queries for the md-toolbar switch from portrait 56px to landscape 48px.

    @devversion I notice you created the pull to add the responsive sizing to the toolbar #2157. Are there plans to use alternative media queries instead of using the orientation?

  4. added a commit that references this issue on Feb 26, 2017
    2187c08
  5. added
    P3
    on Feb 26, 2017
  6. added a commit that references this issue on Feb 27, 2017
    d1abc9e
  7. added a commit that references this issue on Apr 16, 2017
    ac476e4
  8. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions