-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix dropdown content position bug #424
Conversation
✨✨ That's perfect, there is no visual difference! ✨✨ Check out the report here. |
@im36-123 Please review!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work 🎉
I left a comment. Please check 🙏
} else { | ||
position.top = `${scroll.top + triggerRect.top - contentSize.height}px` | ||
const paddingBottom = 10 | ||
contentBox.top = `${scroll.top + triggerRect.bottom}px` | ||
contentBox.maxHeight = `${windowSize.height - triggerRect.bottom - paddingBottom}px` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@im36-123 Thank you for review. Fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you great contribution !!
Great bug fix 🎉🎉🎉
problem
☝️ Can no longer scroll upward
Under the following conditions, DropdownContent display position will be strange as shown in the image above.
ideal
For the conditions listed above, the DropdownContent is displayed at the appropriate size below the DropdownTrigger and is scrollable.
what I did
I made it ideal!!!!!!