gajus / brim

View (minimal-ui) manager for iOS 8.
http://gajus.com/sandbox/brim/demo/
Other
391 stars 41 forks source link

IPhone X resizing #31

Open alexbalda opened 6 years ago

alexbalda commented 6 years ago

Hi, I am having some trouble with iPhone X resizing. The minimal ui is invoked correctly, but the brim-main element is not resized accordingly, so I am left with a chunk of blank space where the bottom nav bar was previously located. It is worth noting that this only happens on initial load, so if I go to landscape and back to portrait, the resizing is done correctly regardless of how many times the minimal ui is invoked.

I'm passing the width configuration as shown below.

const scream = Scream({
   width: {
    portrait: screen.width,
    landscape: screen.height
   }
});

Would highly appreciate any help. Thanks!