Skip to content

Commit

Permalink
Merge pull request #4293 from J-Kallunki/addon-viewport-fix-iphone-vi…
Browse files Browse the repository at this point in the history
…ewport-dimensions

Fix #4269 iPhone viewport dimensions
  • Loading branch information
gabrielcsapo committed Oct 10, 2018
2 parents bda1dc0 + 6b9c5c5 commit 35c45ab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/viewport/src/manager/components/tests/Panel.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ describe('Viewport/Panel', () => {
});

it('passes the children', () => {
expect(select.props().children).toHaveLength(15);
expect(select.props().children).toHaveLength(17);
});

it('onChange it updates the viewport', () => {
Expand Down
24 changes: 20 additions & 4 deletions addons/viewport/src/shared/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,32 @@ export const INITIAL_VIEWPORTS = {
iphone8p: {
name: 'iPhone 8 Plus',
styles: {
height: '960px',
width: '540px',
height: '736px',
width: '414px',
},
type: 'mobile',
},
iphonex: {
name: 'iPhone X',
styles: {
height: '1218px',
width: '563px',
height: '812px',
width: '375px',
},
type: 'mobile',
},
iphonexr: {
name: 'iPhone XR',
styles: {
height: '896px',
width: '414px',
},
type: 'mobile',
},
iphonexsmax: {
name: 'iPhone Xs Max',
styles: {
height: '896px',
width: '414px',
},
type: 'mobile',
},
Expand Down

0 comments on commit 35c45ab

Please sign in to comment.