Comments (5)
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.
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.
Can we use viewport size for context (document text) and e.g. px size for the header?
from evothings-examples.
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.
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)
- Make two sets of examples for TI SensorTag
- Update on-screen instructions for Hello World
- Add sorting of beacons in example apps
- hi please how do we add more buttons to the arduino code?? for ON and OFF led wifi-arduino example
- TISensorTag Demo example apps do not work on iOS HOT 1
- Dialog Blinky app does not work on Android (Evothings Viewer 1.4) HOT 2
- Example app "TI SensorTag CC2650 & CC2541 Accelerometer" does not work on CC2541 HOT 3
- Connect to two Dialog IoT Sensor tags concurrently HOT 6
- "Dialog IoT Sensor Starter Guide" doesn't function HOT 9
- 'Dialog Semiconductor IoT Sensor' app datalogging in .txt (or .log) file HOT 5
- Raspberry 3 + rpi3-system-information/rpi3-application HOT 1
- BLE notifications does not work on HexiWear HOT 2
- I want to create Eddystone Beacon using nrf24l01. How do i achieve that?
- Example "hue lights" not working with newest bridge firmware
- Arduino BLE on off will not load without errors new
- pairing hexiwear with intel edison
- Example for cordova StatusBar plugin
- BLE Scan Frequency
- NRF51 simple test error HOT 1
- RFduino Project - Device input with phone app response HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evothings-examples.