Giter Club home page Giter Club logo

Comments (10)

bestwnh avatar bestwnh commented on August 24, 2024

No plan for support scrolling yet. Always welcome for pull request.
For now you can just simply add it in a UIScrollView then you can make the scroll. You may need to change the UIScrollView's contentSize by yourself when the expand status changed.

from igldropdownmenu.

hongzhou85 avatar hongzhou85 commented on August 24, 2024

+1

from igldropdownmenu.

hongzhou85 avatar hongzhou85 commented on August 24, 2024

how do we get the height of the expanded menu?

from igldropdownmenu.

bestwnh avatar bestwnh commented on August 24, 2024

Just detect the expanding status change and get the latest frame.size or bounds.size of the IGLDropDownMenu;

from igldropdownmenu.

hongzhou85 avatar hongzhou85 commented on August 24, 2024

It will only get the height of the menu but not the height of the expanded menu. So I have take number of items x the height.

from igldropdownmenu.

bestwnh avatar bestwnh commented on August 24, 2024

You're right. Because the animation not completed yet when the delegate call, so you can't get the actually size. I add a new delegate method to call after the animation completed it should work fine. Just pull the latest code or update to IGLDropDownMenu 1.6.1 if you using CocoaPods.

from igldropdownmenu.

hongzhou85 avatar hongzhou85 commented on August 24, 2024

This is not an issue for the dropdown menu, but if we implement it in scrollview, the items are not detecting the touch and cannot be selected. Do you know the way to propagate the touch from scrollview to the subview (dropdown menu)? Thanks!

from igldropdownmenu.

bestwnh avatar bestwnh commented on August 24, 2024

Could you provide a demo project or example code?

from igldropdownmenu.

hongzhou85 avatar hongzhou85 commented on August 24, 2024

img_2929
img_2930

The menu is added as subview to the content view (UIView) of the scrollview.
I'm able to scroll to view all the items in the list in the scroll view.
The items after "contour" doesn't which doesn't fits in the contentview of the scroll view is not selectable.

from igldropdownmenu.

bestwnh avatar bestwnh commented on August 24, 2024

@hongzhou85 I make some try and it works fine in a UIScrollView. So please provide a demo project that can reproduce this issue.

from igldropdownmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.