Skip to content

Out of boundsfix#3753

Closed
spencerlwahlstrom wants to merge 2 commits intofacebook:mainfrom
spencerlwahlstrom:out-of-boundsfix
Closed

Out of boundsfix#3753
spencerlwahlstrom wants to merge 2 commits intofacebook:mainfrom
spencerlwahlstrom:out-of-boundsfix

Conversation

@spencerlwahlstrom
Copy link
Copy Markdown

Fixed out-of-bounds issue #3751, for embedded snack player cutting off android, and ios devices. Changed snack players height so view is no longer cutoff and there is sufficient space surrounding it.

1

2

@netlify
Copy link
Copy Markdown

netlify bot commented Jun 10, 2023

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit a0bce1f
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/6484eff6f1918300087c74ff
😎 Deploy Preview https://deploy-preview-3753--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@NickGerleman
Copy link
Copy Markdown
Contributor

I think this should be stable now that we are specifying the Appetize Frame.

I think we could further optimize a bit, like asking Appetize not to show the frame, so we can take back a little bit of space, but viewing this on the website, it doesn't look too tall to my eyes (though that is of course subjective). I do notice in the iOS example we end up having a larger gap below the device than above. Is this needed to fit the current Android emulator?

Since this is kinda stylistic though, I want to give other reviewers an opportunity to share their thoughts before hitting the merge button.

@Simek
Copy link
Copy Markdown
Collaborator

Simek commented Jun 12, 2023

Setting a static height is still a sort of workaround, since the viewport height of Android and iOS screens differs. Like Nick, I also would like to see the player version with device frames disabled. Maybe then we can guarantee same dimensions?

From the quick test on the deploy previe we can reduce the base height to 691px which is the size of Snack with Android screen and frame (iOS one height is 661px).

A quick comparison shot:
Screenshot 2023-06-12 215754

Snack player with new height looks nice in complex examples, but in short ones, it would be nice if we can spare a bit of height viewport, not sure ATM exactly how. Maybe max height could be an additional param, but still, with device frames on we might not able to do much.

@Simek
Copy link
Copy Markdown
Collaborator

Simek commented Jan 5, 2024

After dropping the device frame, the simulator content cropping should no longer occurs, thus wrapper height change is no longer needed. Closing this PR for now, it there are still some issues with Snacks rendering let's create a new issues/PR for them. Thanks @spencerlwahlstrom so much for bringing this problem to our attention! 🙏

@Simek Simek closed this Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants