Join the Webstudio community

Updated 2 months ago

Odd issue only on iOS

At a glance

The community member is having trouble with divs not behaving the same on Android and iOS devices, specifically on iOS version 17.6.1 on an iPhone 11. The issue occurs across all current browser versions, including Firefox, Chrome, and Safari. The community members discuss potential solutions, such as changing the display property, disabling Safari, and addressing the height 100% issue. Eventually, one community member suggests that the problem is related to the community member trying to squeeze an image into a layout, and that the image should define the proportions instead. This solution is confirmed to have solved the issue.

Useful resources
I am having trouble with divs not behaving the same on Android and iOS.
iOS ver 17.6.1
iPhone 11
Issue happens across all current versions of browsers: Firefox, Chrome, Safari.

The messed up one is from iOS. The correct one is from Android.

Live link: https://iryntushabe.com/

WS link: https://p-2de7a4b8-80a3-4b4b-b80f-181d22f9c262.apps.webstudio.is/?authToken=e82955ca-03e3-4964-bb4b-7a070086e8db&mode=preview
Attachments
Screenshot_20241108-172538_Firefox.jpg
155D6776-B9F2-4385-B152-47044386F970.jpg
S
O
12 comments
It only happens on this spot on the website. Fine elsewhere.
looks strange indeed, have you tried turning everything off and see when this starts happening?
seems like it has to do with content embed
Attachment
image.png
safari seems to not see it's size and jumps over it
I would try changing display from contents to block
actually no, I just tried, that didn't help
here is a quick workaround to enable changing directly in safari

localStorage.features = 'unsupportedBrowsers'
Attachment
image.png
we disable safari since its not fully supported and has bugs, but in this case its easier to debug the problem directly in safari
found it, its the height 100%
Attachment
image.png
in there safari seems to be interpreting it differently
you seem to be trying to squeeze the image into a layout, where the image should be defining the proportions, so if you need some kind of object fit like cover/contain, that should be on the image
Thanks Oleg. That solved it.
Add a reply
Sign up and join the conversation on Discord