Skip to content

feat(ui): Add stack view resize on screen size change#17

Merged
mhiro2 merged 1 commit intomainfrom
feat/stack-view-resize-on-screen-change
Feb 24, 2026
Merged

feat(ui): Add stack view resize on screen size change#17
mhiro2 merged 1 commit intomainfrom
feat/stack-view-resize-on-screen-change

Conversation

@mhiro2
Copy link
Copy Markdown
Owner

@mhiro2 mhiro2 commented Feb 24, 2026

Summary

  • Add resize_all() function to stack view module to handle window resize events (VimResized/WinResized)
  • Integrate resize_all() call into debounced reflow events for automatic resizing
  • Add comprehensive tests for layout edge cases and reflow behavior
  • Ensure reflow_all safely skips hidden stacks without error

Changes

  • 8643ccb : feat(ui): add stack view resize on screen size change
    • Add resize_all() function to stack_view/init.lua that updates window config for all open stack views
    • Call resize_all() in events.lua during debounced reflow to respond to screen size changes
    • Add tests for layout clamping to min_size on small screens, non-negative position validation, and reflow
      behavior

@mhiro2 mhiro2 self-assigned this Feb 24, 2026
@mhiro2 mhiro2 added the enhancement New feature or request label Feb 24, 2026
@mhiro2 mhiro2 merged commit b397bef into main Feb 24, 2026
3 checks passed
@mhiro2 mhiro2 deleted the feat/stack-view-resize-on-screen-change branch February 24, 2026 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant