-
Notifications
You must be signed in to change notification settings - Fork 348
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS HTML/Body Height should be 100% by default. #66
Comments
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: 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. |
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
I actually thought user agent styles would be the same for desktop and mobile chrome apps. Doesn't it make sense? |
Yeah, I think it makes sense to add what user-agent CSS differences that we can. This certainly seems like a big one. |
@beaufortfrancois has just discovered that the root cause was a missing Most app developers must add the style themselves. Closing this as wontfix. |
Hey guys, I've noticed that the HTML/BODY CSS Height was not consistent between the mobile chrome apps webview and chrome.
Here's the source of the simple app file:
This screenshot is the file loaded by Google Chrome for Android:
This one is the same file loaded inside a mobile chrome app:
The trick/tip is to set this CSS:
I don't think this is good though.
What are your thoughts on that?
The text was updated successfully, but these errors were encountered: