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

Collapsible panes #22

Merged
merged 8 commits into from
Jan 1, 2024
Merged

Collapsible panes #22

merged 8 commits into from
Jan 1, 2024

Conversation

KenanYusuf
Copy link
Owner

@KenanYusuf KenanYusuf commented Dec 31, 2023

Previously, a pane at its minimum size was considered "collapsed". In this PR, this concept is separated into two configurable states for a pane:

  • minSize - when a pane reaches its minimum size.
  • collapsedSize - when resizing extends 50% over the panes minimum size, it collapses.

Two functions are available via resplit context:

  • isPaneMinSize - check if a pane is at its min size or not.
  • isPaneCollapsed - check if a pane is collapsed or not.
collapsible.pane.mov

Copy link

github-actions bot commented Jan 1, 2024

size-limit report 📦

Path Size
dist/resplit.es.js 3.63 KB (+5.42% 🔺)

@KenanYusuf KenanYusuf merged commit 8df8ed8 into main Jan 1, 2024
@KenanYusuf KenanYusuf deleted the collapsible-panes branch January 1, 2024 10:04
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.

1 participant