patbonecrusher / SlidingPanels.Touch

Monotouch implementation of sliding panels, much like the facebook left and right panels.
13 stars 20 forks source link

black border at the bottom in landscape in demo app #8

Open andreinitescu opened 10 years ago

andreinitescu commented 10 years ago

this happens in the demo app in landscape, sometimes a black border appears at the bottom sometimes it's not visible if you rotate the device with the menu open. you need to close and open again to see the issue.

also, in my app, once I get this black border at the bottom in landscape, when I rotate back to portrait I get a vertical black rectangle, like in the image from another issue (https://github.com/thedillonb/MonoTouch.SlideoutNavigation/issues/7) this doesn't happen in the demo app though.

ios simulator screen shot jul 15 2014 3 32 59 pm

this is iOS 7.1

andreinitescu commented 10 years ago

issue is more visible on iPad ios simulator screen shot jul 15 2014 4 24 50 pm

andreinitescu commented 10 years ago

In PanelContaneir::ViewWillAppear it doesn't take into account the PortraitUpsideDown, it should be like:

if (InterfaceOrientation != UIInterfaceOrientati on.Portrait && InterfaceOrientation != UIInterfaceOrientation.PortraitUpsideDown) {

this fixes the problem in the demo.

but I still have the 2nd problem which appears only in my app with the vertical black rectangle. it looks like on rotation, the frames need to be recomputed. Don't know yet how to fix that exactly.