Skip to content

Viewport resizing #1145

Closed
Closed
@JosefBredereck

Description

@JosefBredereck

Just took that feature request/issue from gitter from @dxsferrer

Hi there! I've been using PL2 for quite some time and now I am starting to play around with PL 3, and testing if I a migration is feasible. Among other things I have noticed that I can no longer manually set a viewport size (in PL2 it the px/rem indicators were editable). Also, when setting a max-width for "l" breakpoint (patternlab-config.json) it becomes the new global max-width and the iframe can no longer be resized above that point, thus the "full" button becomes quite useless. Are those constraints intended? Thank you so much!

I also found a todo in the code which would be great to be resolved
// @todo: re-add keyboard shortcuts to these

I will try to supply a fix for that.

Expected Behavior
  1. When I click on full size the viewport should resize to full window with independently from max size of config.ishViewportRange.l.

  2. When click into viewport size I can edit the value manually

Actual Behavior
  1. Even on clicking full size, the viewport gets resized to a maximum of size L.
  2. The value is not editable
Steps to Reproduce

Change value of config.ishViewportRange.l to 900 and serve patternlab. Click on full size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions