Coder Social home page Coder Social logo

Comments (5)

mikaelkindborg avatar mikaelkindborg commented on July 26, 2024

Some more findings:

  • The above test cases pass on iOS 8 (tested on iPad Mini).
  • The issue with the white horizontal space above of the header bar might be related to displaying the keyboard, then pressing CONNECT in "Arduino LED On/Off TCP". This could be the case also in other examples that display the keyboard.

from evothings-examples.

Sionarch avatar Sionarch commented on July 26, 2024

Confirming these issues occur in iOS 7 but not in iOS 8.

Viewport size relative units bug
WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=131863
(Ugly) workaround: https://github.com/rodneyrehm/viewport-units-buggyfill

Fixed position header bug
Probable WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=132537
Found only workarounds that uses ugly JavaScript code, except this one which I haven't confirmed working.

I refrain from using "polyfills" and "buggyfills" and in general from using JavaScript to fix these layout issues. This will clutter the example's code and is a bad incentive for future development work. As the bugs have been fixed in the Mobile Safari used in iOS 8, I recommend not fixing them for iOS 7.

Alternative ways of solving the issue relating to viewport relative units:

  • Use media queries targeting iPad and iPhone devices based on their screen dimensions and css pixel density, as per e.g. http://cssmediaqueries.com/target/iPhone+4.html . This will also target devices running iOS 8.
  • Use simple line of JavaScript changing the base font size e.g. "if (/iP(hone|ad|od).*OS 7/.test(navigator.userAgent)) document.body.style.fontSize='50px'". The downside is that this has to be put in all example apps and will clutter their code.

from evothings-examples.

mikaelkindborg avatar mikaelkindborg commented on July 26, 2024

Can we use viewport size for context (document text) and e.g. px size for the header?

from evothings-examples.

Sionarch avatar Sionarch commented on July 26, 2024

A workaround to the viewport relative sizes related issue using the previously mentioned simple JavaScript line of code has been added to evothings-examples evothings.js, see #89 .

from evothings-examples.

mikaelkindborg avatar mikaelkindborg commented on July 26, 2024

This have been verified to work in an iPhone 4S with iOS 7. Also tested iPad Mini iOS 8 and Nexus 7 which works as expected.

Closing issue.

from evothings-examples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.