CCDropDownMenu
CCDropDownMenu copied to clipboard
Long menu can lead to huge magnification of open menu after background/foreground
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?
Really this one is nice library , but for small screen size i am also wandering how to make dropdown scrollable ? any suggestion welcome.