-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add single width left margin for completion popup #2728
Add single width left margin for completion popup #2728
Conversation
The scroll bar was actually next on my list, along with adding a scroll bar for the doc popup :) |
When rendering a completion popup, the popup component will clear the area with ui.popup and then the menu component would draw over it using a table component. We remove the left edge of the area before passing it to the table component (so that it will be left as padding), and the table component uses ui.menu as the style. If ui.menu and ui.popup are different the left edge of the popup will look different from the rest of the popup. We avoid this by clearing the whole area with ui.menu in Menu::render
Fixed in 23bc196; the bug was from the area not being cleared by |
Ah that's it! Just pulled down that commit and it's looking perfect. |
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.
Looks good, I like the extra space 🎨
I'm not sure how I feel about the extra space but let's try it in master 👍🏻 |
Adds a bit of padding to the left edge of the completion popup: