Skip to content

Add reverse parameter for overflow direction control#1

Merged
hoangdat merged 1 commit intomasterfrom
feature/reverse-overflow-direction
Dec 9, 2025
Merged

Add reverse parameter for overflow direction control#1
hoangdat merged 1 commit intomasterfrom
feature/reverse-overflow-direction

Conversation

@tddang-linagora
Copy link
Copy Markdown
Collaborator

Adds a new reverse parameter to OverflowView and OverflowView.flexible that allows overflow to occur from the start (left/top) instead of the end (right/bottom).

Features:

  • Reverse mode trims from left (horizontal) or top (vertical)
  • Overflow indicator appears at the start in reverse mode
  • Works with both fixed and flexible layout modes
  • Supports spacing in reverse mode

Performance:

  • Optimized reverse layout to O(k) complexity for fixed mode
  • Optimized reverse layout to O(n) complexity for flexible mode
  • Eliminated O(n²) operations from initial implementation

Tests:

  • Added comprehensive test coverage for reverse functionality
  • All existing tests continue to pass

Bump version to 0.6.0

Adds a new `reverse` parameter to OverflowView and OverflowView.flexible
that allows overflow to occur from the start (left/top) instead of the
end (right/bottom).

Features:
- Reverse mode trims from left (horizontal) or top (vertical)
- Overflow indicator appears at the start in reverse mode
- Works with both fixed and flexible layout modes
- Supports spacing in reverse mode

Performance:
- Optimized reverse layout to O(k) complexity for fixed mode
- Optimized reverse layout to O(n) complexity for flexible mode
- Eliminated O(n²) operations from initial implementation

Tests:
- Added comprehensive test coverage for reverse functionality
- All existing tests continue to pass

Bump version to 0.6.0
@dab246
Copy link
Copy Markdown
Member

dab246 commented Dec 5, 2025

Also should create PR on up-stream project

@hoangdat hoangdat merged commit 4911398 into master Dec 9, 2025
@hoangdat
Copy link
Copy Markdown
Member

hoangdat commented Dec 9, 2025

Upstream PR: letsar#13

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.

3 participants