Comments (10)
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.
+1
from igldropdownmenu.
how do we get the height of the expanded menu?
from igldropdownmenu.
Just detect the expanding status change and get the latest frame.size or bounds.size of the IGLDropDownMenu;
from igldropdownmenu.
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.
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.
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.
Could you provide a demo project or example code?
from igldropdownmenu.
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.
@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)
- Unable to set width of IGLDropDownMenuItem HOT 5
- Make dropDown view above below views? HOT 1
- Dropdown hides behind the dropdown below it HOT 1
- Is there a way or delegate method to detect if the menu is tapped/open? HOT 9
- updating cocoapods HOT 3
- storyboard custom menu button HOT 1
- Add UITapGesture to close menu HOT 8
- If anyone think it should re-write to a swift version, please leave a comment in this issue. HOT 5
- How to instantiate this through storyboard? HOT 1
- Can not using autolayout HOT 5
- Changing DropDownItem textLabel stuff not doing anything HOT 6
- My own menu button HOT 2
- Crash: IGLDropDownItem.h HOT 1
- How to make IGLDropDown Menu view as rounded drop downlist? HOT 5
- I'm not able to scroll it HOT 3
- items problems
- In IGLDropDownMenuDirectionUp mode selected index is always 0 HOT 4
- The item may be not selectable if it's outside the screen
- 展开之后,快速点击展开的item,动画会造成跳动,超过布局范围的跳动
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from igldropdownmenu.