Skip to content
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

make overflowing Add Lora menus scrollable #239

Merged
merged 7 commits into from
Dec 23, 2023
Merged

make overflowing Add Lora menus scrollable #239

merged 7 commits into from
Dec 23, 2023

Conversation

vtvrv
Copy link
Contributor

@vtvrv vtvrv commented Dec 16, 2023

The Add Lora menu with overflow the screen if there are too many items
problem

This commit makes the menu scrollable if there are too many items.
fix

@@ -299,7 +299,15 @@ def value(self):
def value(self, v):
self._checkbox.setChecked(v)


class QMenu(QMenu):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sub-class isn't really needed here (and I don't like that it has the same name)
Please just keep the function, name it _menu_width or similar and call it directly

@Acly
Copy link
Owner

Acly commented Dec 20, 2023

This looks like a good solution for now. Please fix lint issues before merge.

@vtvrv
Copy link
Contributor Author

vtvrv commented Dec 21, 2023

This looks like a good solution for now. Please fix lint issues before merge.

@Acly Thank you for your feedback. I've updated my pull request. I'm unable to correct the Lint error. Please make any corrections.

edit. fixed it 😄

@Acly Acly merged commit 6b64ebc into Acly:main Dec 23, 2023
2 checks passed
@Acly
Copy link
Owner

Acly commented Dec 23, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants