Repository navigation
Support relative scroll for ListBox - #858
Merged
Merged
Conversation
penguinolog
force-pushed
the
ListBox_relative_scroll
branch
from
March 13, 2024 09:46
b844b3f to
5885a62
Compare
penguinolog
commented
Mar 13, 2024
| ow_canv = ow.render(ow_size, focus) | ||
| self._original_widget_size = ow_size | ||
| if isinstance(ow, SupportsRelativeScroll) and ow.require_relative_scroll(size, focus): | ||
| if len(ow) == ow.get_visible_amount(size, focus): |
Collaborator
Author
There was a problem hiding this comment.
should be very special case
penguinolog
commented
Mar 13, 2024
| fill: list[_FillItem] | ||
|
|
||
|
|
||
| class _VisibleArea(typing.NamedTuple): |
Collaborator
Author
There was a problem hiding this comment.
nicer debugging, but pylint has issues with typing. Silenced pylint.
Probably we should make these types public for using in overridden method (if somebody do it)
Pull Request Test Coverage Report for Build 8264076557Details
💛 - Coveralls |
penguinolog
force-pushed
the
ListBox_relative_scroll
branch
2 times, most recently
from
March 13, 2024 10:55
9b7f170 to
181efe4
Compare
* By default use relative scroll if amount_of_widgets >= maxrow * 3 * Simplify typing for `calculate_visible`
penguinolog
force-pushed
the
ListBox_relative_scroll
branch
from
March 13, 2024 11:27
181efe4 to
8ac1718
Compare
* narrower `ScrollSupportingBody` API and rework `rows_max`
penguinolog
force-pushed
the
ListBox_relative_scroll
branch
from
March 13, 2024 11:46
8ac1718 to
77d150a
Compare
This was referenced Mar 14, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
calculate_visibleChecklist
masterorpython-dual-supportbranchtoxsuccessfully in local environmentFix: #845