Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Long menu can lead to huge magnification of open menu after background/foreground #4

Open
kramsretep opened this issue Aug 11, 2017 · 1 comment

Comments

@kramsretep
Copy link

I have a drop down containing 8 items. On a tall device like the iPhone 7 Plus, the open menu fits on the display (the menu happens to be in the upper third of the view). On a short device like an iPhone 5, the menu doesn't fit - some of the items are offscreen.

Under some admittedly weird circumstances, if I background my app with the menu open, then foreground it, the ManaDropDownMenu.draw(CGRect) method is called, and when my view finally displayed, the menu is magnified to the extent that the arrow graphic takes up the entire area where the menu once was, with everything to the left of it offscreen.

The weird circumstance is that after backgrounding, I launch Safari and open cnn.com, wait for it to finish loading the page, open nbcnews.com, wait for it to finish loading, background Safari, then tap on my app's icon to foreground it. The ManaDropDownMenu.draw(CGRect) method is called, and when my view finishes drawing, the entire bottom two-thirds of the display is taken up by the arrow icon - seemingly the whole open menu has been magnified by a factor of 8-10.

This doesn't happen if the menu fits on the display. Sometimes it doesn't even happen if I repeat the above test.

Is there a way to tell the menu to display only some of the items, providing the rest via scrolling?

@IamArmaan
Copy link

Really this one is nice library , but for small screen size i am also wandering how to make dropdown scrollable ? any suggestion welcome.

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

No branches or pull requests

2 participants