Comments (4)
Hello François! Preparing to write up a G+ post? ;) We look forward to it.
CCA provides a default stylesheet to try and emulate the desktop chrome app styles:
https://github.com/MobileChromeApps/chrome-cordova/blob/master/plugins/chrome-bootstrap/www/chromeappstyles.css
It is based on: https://code.google.com/p/chromium/codesearch#chromium/src/chrome/renderer/resources/extensions/platform_app.css
Ours has fallen out of date, so I will update it to the latest version. Still, it appears that the platform_app.css will not supply a default body height of 100%. I'll investigate to see where that style is actually coming from on the desktop platform.
Note: we do not attempt to override the default user agent styles to make the webview more like chrome. There is another issue (#8) already open to provide a default css reset, so clearly this is something users want.
from mobile-chrome-apps.
Hey Michal,
Yes, I was about and wanted to convert a simple Chrome App to Android but stumbled upon #62 sadly ;) I guess I'll have to wait a little bit more for this one.
Regarding this issue, it's not just about the <body>
but also the <html>
:
html, body {
height: 100%;
}
I actually thought user agent styles would be the same for desktop and mobile chrome apps. Doesn't it make sense?
Having the same rendering logic in Chrome wherever it runs on mobile or desktop?
from mobile-chrome-apps.
Yeah, I think it makes sense to add what user-agent CSS differences that we can. This certainly seems like a big one.
from mobile-chrome-apps.
@beaufortfrancois has just discovered that the root cause was a missing <!DOCTYPE html>
from his application, which was causing the height 100% in desktop chrome. This is either a bug with apps on desktop, or at least a quirk we don't need to emulate.
Most app developers must add the style themselves. Closing this as wontfix.
from mobile-chrome-apps.
Related Issues (20)
- Chome.bluetooth/chrome.bluetoothsocket API not responding
- mobile chrome app does not work under ios10 HOT 9
- Video tutorial on how to Run Chrome Apps on Mobile Using Apache Cordova
- No background scripts found in your manifest.json file
- ChromeSocketsTcp.h not found in iOS project
- Getting only blank screen in iOS
- Update Cordova (android command depreciated) HOT 1
- not installing
- Ran into "Android SDK not found" error even though SDK is installed and `ANDROID_HOME` points to it HOT 4
- mobile app HOT 2
- Chrome Android 6.0 star os mobile app
- Whole document visible black in android HOT 1
- [QUESTION] Where I can find the CI service?
- background-attachment: fixed does not work on Android Chrome
- HID Support
- iOS - window.open() opens new window(tab) but back button is disabled HOT 1
- creating an online app
- ERROR: A problem occurred evaluating root project 'ZZAPP'.
- Bottom toolbar affect the normal operation of the web page
- node pull unresponsive
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 mobile-chrome-apps.