Skip to content

Ionic Lab display seems off -- device simulators do not vertically fit, scrollbars are visible  #3658

Closed

Description

@bnfrnz

Ever since upgrading to ionic-cli@^4 and installing @ionic/lab, when developing on a 13 inch Mac Air in Chrome (with bookmarks bar visible), the device simulators do not vertically fit anymore. There are constant (ugly white) scrollbars.

It's a bit frustrating because:

  1. The simulators are never fully visible.
  2. I always scroll the lab UI instead of the app content in the device simulators, depending on where the mouse cursor currently is.

I'm not sure what changed from v3 actually. Did the device simulators' height/size increase? Did the lab header and/or footer height grow and take up more space? Something happened. And the experience, developing in a browser on a 13 inch screen has become quite annoying.

Activity

  1. bnfrnz commented on Oct 2, 2018

    @bnfrnz
    Author

    Following this, opening http://localhost:8100/ionic-lab, the old lab UI seems to be used and everything fits perfectly again.

  2. imhoffd commented on Oct 2, 2018

    @imhoffd
    Contributor

    @bnfrnz Ionic Lab was completely rewritten so it could be reusable. I will investigate this.

  3. changed the title [-]Go back to v3 ionic lab UI[/-] [+]Ionic Lab display seems off -- device simulators do not vertically fit, scrollbars are visible [/+] on Oct 2, 2018
  4. imhoffd commented on Oct 9, 2018

    @imhoffd
    Contributor

    @bnfrnz Not really seeing any of the issues you're describing, unless I'm missing something. In fact, the new Ionic Lab seems more usable.

    New:

    • I can scroll up and down to see the top and bottom of the devices.

    image

    Old:

    • Won't let me scroll to reveal the status bars.

    image

  5. imhoffd commented on Oct 9, 2018

    @imhoffd
    Contributor

    We could shrink the devices so that they fit in the screen, but I don't know if that's always desirable. Maybe we can add a setting.

  6. bnfrnz commented on Oct 10, 2018

    @bnfrnz
    Author

    Hi @dwieeb, thanks for looking into this.

    Won't let me scroll to reveal the status bars.

    In your screenshot of the old Ionic Lab, your window height is very small. I don't think anyone uses a screen like that for development. I was referring to at least a 13 inch MacBook. In that case, you will not need any scrollbars in the old Lab. Everything is just perfectly visible.

    To have everything visible at once in the new Lab, you'd need a 15 inch laptop. I opened this issue because I often work on 13 inch. And I'd assume there are a fair few people out there who do as well.

    Here are 13 inch screenshots:

    Old Lab:
    old

    New Lab:
    new

    I think these are the main changes from old to new:
    new with markup

    I can scroll up and down to see the top and bottom of the devices.

    As said, in my opinion scrolling is not desirable here. Because my app (within the device iframes) scrolls as well. So, when I use a Magic Mouse (or any conventional mouse with a wheel) to scroll up and down, I just want my app to scroll. It's a bit frustrating when the entire Lab window alway scrolls up and down instead of just my app.

    I hope I did a better job at explaining this time but let me know if not...

    We could shrink the devices so that they fit in the screen, but I don't know if that's always desirable. Maybe we can add a setting.

    I think a setting like that could be a good solution! It would enable people with different screen sizes to develop and test without having to scroll up and down constantly.

    I did try using the browser-inbuilt zoom function for this. But that gives some weird results, especially when compressing image assets.

  7. imhoffd commented on Oct 10, 2018

    @imhoffd
    Contributor

    @bnfrnz Ah, thanks. You explained it well. Thank you 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions