Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] App Bar (v-toolbar) Height Adjusts from 56 to 48 to 64 dp #3990

Closed
185driver opened this issue May 4, 2018 · 6 comments
Closed
Assignees
Labels
C: VToolbar VToolbar P: low The issue is of low importance T: bug Functionality that does not work as intended/expected
Milestone

Comments

@185driver
Copy link
Contributor

Versions and Environment

Vuetify: 1.0.17
Vue: 2.5.16
Browsers: Chrome 67.0.3396.30
OS: Windows 10

Steps to reproduce

Open Codepen on the desktop, resize the browser window width, and note:

  1. At widths less than 843px, the v-toolbar height is 56dp
  2. At widths greater than 959px, the v-toolbar height is 64dp
  3. At browser widths between these two, the v-toolbar height is 48dp

Expected Behavior

Google seems to intend that the app bar height metrics are either 56dp or 64dp, except for landscape mode on mobile, where it is supposed to be 48dp.

Actual Behavior

At browser window widths of 843px to 959px on desktop, the v-toolbar height is 48dp instead of 64dp.

Reproduction Link

https://codepen.io/185driver/pen/YLxmRy

Other comments

It seems odd to see browser window widths on the desktop that display the v-toolbar at 48dp high, especially in-between 56dp and 64dp heights.

@johnleider johnleider added this to the v1.2.x milestone May 16, 2018
@nekosaur nekosaur added T: bug Functionality that does not work as intended/expected P: low The issue is of low importance labels May 17, 2018
@johnleider johnleider modified the milestones: v1.2.0, v1.1.x Aug 25, 2018
@johnleider johnleider self-assigned this Aug 25, 2018
@KaelWD KaelWD closed this as completed in f18b54e Aug 28, 2018
@185driver
Copy link
Contributor Author

185driver commented Aug 29, 2018

I'd like to suggest that this issue isn't fixed. At least not on desktop at moderate screen sizes. I've updated my codepen to use v.1.2.0 stable. Here's my explanation revisited:

Steps to reproduce

Resize the browser window horizontally. With browser window height of 804px, note that the toolbar height is 56px < 805px wide, 64px > 960px wide, and 48px in-between.

Expected Behavior

The "mobile landscape mode" of 48px for toolbar height shouldn't trigger at these browser window sizes. Screen widths on large-ish phones screens (like iPhone 8 Plus or Pixel 2 XL) are in the 414px range, so in landscape mode would have that as a height. I would suggest preventing mobile landscape mode unless the screen height is less than 450px to 500px or so. That way, on tablets and desktop, it doesn't get used, even in moderate browser window sizes.

Actual Behavior

See Steps to Reproduce.

Reproduction Link

https://codepen.io/185driver/pen/wEzoNm (updated to v1.2.0 stable)

Additional Comments:

The attached screenshot is from my actual v1.2.0 app. Apologies for the file size; I wanted it to display smoothly.

Note the screen size numbers to the left of the dev tools window and the changing toolbar height at various widths. Note too that the browser window is 804px high, not a height that should really be triggering mobile landscape mode in the toolbar.

Thanks for considering.
toolbar

@johnleider johnleider reopened this Aug 29, 2018
@WIStudent
Copy link

I experienced a similar issue with the Toolbar height: Whenever I open the keyboard in Chrome for Android, the height changes from 56px to 48px.
ezgif-1-c50378340d

I think it is caused by this part in VToolbar.js

      if (this.$vuetify.breakpoint.width >
        this.$vuetify.breakpoint.height
      ) return this.heights.mobileLandscape

When the keyboard is opened, the height of the window is smaller than its width. Is there no better way to detect landscape mode on mobile devices than checking, if the window width is bigger than its heigt?

@KaelWD
Copy link
Member

KaelWD commented Sep 6, 2018

screen.orientation.angle or matchMedia("(orientation: landscape)").matches

@jacekkarczmarczyk
Copy link
Member

maybe orientation could be added to the breakpoint?

@blowsie
Copy link
Contributor

blowsie commented Dec 20, 2018

Reproduction using nuxt
https://codesandbox.io/s/y0pmkyxx41

I think this is the same issue?

@blalan05 blalan05 added the C: VToolbar VToolbar label Apr 9, 2019
@johnleider
Copy link
Member

Orientation is no longer changes toolbar height (based upon md2 spec) and now is based off of breakpoints.

image

If you have any additional questions, please reach out to us in our Discord community.

@johnleider johnleider modified the milestones: v1.1.x, v2.0.0 Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VToolbar VToolbar P: low The issue is of low importance T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

No branches or pull requests

8 participants