ipup / PPRevealSideViewController

A new container controller to easily push views on side like Path or Facebook
www.ipup.pro
Other
821 stars 194 forks source link

the resize is not correct on the top side frame #104

Closed haifengkao closed 9 years ago

haifengkao commented 10 years ago

When PPRevealSideOptionsResizeSideView is enabled, getSideViewFrameFromRootFrame will compute the height of the top side frame by the y position of rootFrame, but the y position of top side frame is 20 (not 0). It makes rootFrame and slideFrame overlap with each other, which is not supposed to happen when ResizeSideView is on.

For example, if rootFrame is (0, 410, 320, 480), slideFrame will be (0, 20, 320, 410). It creates an overlapped area (0, 410, 320, 20).

Expected: ios simulator screen shot jun 23 2014 5 48 40 pm

Actual: ios simulator screen shot jun 23 2014 5 50 23 pm