phonegap-build / StatusBarPlugin

PhoneGap Build Plugin providing some customizations to the iOS status bar
https://build.phonegap.com/plugins/304
92 stars 46 forks source link

Status bar color sits at bottom on iPad #20

Open gaga1227 opened 10 years ago

gaga1227 commented 10 years ago

Here's how to reproduce the issue:

  1. Rotate your iPad upside down (the home button on top), the iOS screen rotates to suit the orientation change
  2. Launch the app in this orientation mode and you will see the status bar background color placeholder is at the bottom below the web view, while the real status bar still sits at top without custom set background colour
wildabeast commented 10 years ago

I couldn't reproduce this, but its likely the same issue as #4, and should be fixed in the latest version of this plugin (1.1.0).

gaga1227 commented 10 years ago

Great, thanks! Checked PhoneGap Build is still injecting 1.0.1. Guess that's why, will wait for the update on their end.

wildabeast commented 10 years ago

@gaga1227 I assume you simply ran a rebuild on PhoneGap Build? You need to update your code before it will pull the new version. Just re-upload your zip file or run a git update.

gaga1227 commented 10 years ago

Thanks for the heads up, I followed the instructions on this page:https://build.phonegap.com/plugins/304, where I left out the version code to get the latest version, seems 1.0.1 is the latest it can get? Or I can manually override the version code to 1.1.0?

wildabeast commented 10 years ago

Hmmm if you omit the version, then yes it should use the latest. Try explicitly adding version 1.1.0 to your config.

gaga1227 commented 10 years ago

Update: PhoneGap Build has the latest version 1.1.0 now: https://build.phonegap.com/plugins/505 I tried with and without the specified version code of 1.1.0 and I can still see the problem happening in my case. pgb img_0023

wildabeast commented 10 years ago

OK I managed to reproduce this -- iPad only. Something to do with differences between the iPad and iPhone in how the coordinate system rotates when the device is rotated.

A quick work around until we (contributions welcome) can fix this might be to lock the orientation to Portrait and LandscapeRight (but not PortraitUpsideDown and LandscapeLeft).

gaga1227 commented 10 years ago

Thanks, will try the suggested workaround, but hopefully the proper fix is coming soon.

ChaplinWang commented 10 years ago

Hi Guys, I am encountering this same issue as well, has anyone figured out how to fix it yet?