Skip to content
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

Fixed elements doesn't properly expand on screen rotate #8

Closed
blupu opened this issue Jul 10, 2014 · 1 comment
Closed

Fixed elements doesn't properly expand on screen rotate #8

blupu opened this issue Jul 10, 2014 · 1 comment
Assignees
Milestone

Comments

@blupu
Copy link
Collaborator

blupu commented Jul 10, 2014

  • Nihao Android theme
  • Launch demo app in portrait mode
  • Rotate device to go to landscape mode
  • Some UI elements doesn't expand to 100% width (e.g. header)
@blupu blupu added this to the 0.1 milestone Jul 10, 2014
@blupu blupu self-assigned this Jul 10, 2014
@blupu
Copy link
Collaborator Author

blupu commented Jul 10, 2014

It appears that under some Android device, children of elements with position:fixed are not redrawn on screen rotation. Note that it only happens when using PhoneGap app. It doesn't happen when using Chrome or the Stock Browser itself. Bug has been spotted on Samsung S3 and S4 mini.

Following hack (@media screen...) seems to fix the problem.

http://stackoverflow.com/questions/16200972/android-css-positionfixed-after-a-device-rotate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant