Skip to content

[codex] Resize gridster when its host element changes#1009

Open
nexiumbiz-debug wants to merge 1 commit into
tiberiuzuld:masterfrom
nexiumbiz-debug:codex/observe-element-resize-824
Open

[codex] Resize gridster when its host element changes#1009
nexiumbiz-debug wants to merge 1 commit into
tiberiuzuld:masterfrom
nexiumbiz-debug:codex/observe-element-resize-824

Conversation

@nexiumbiz-debug

Copy link
Copy Markdown
Contributor

Summary

  • observe the gridster host element with ResizeObserver when available
  • call the existing resize path when the element changes size, so collapsible containers/layout panels are handled without relying on window resize
  • disconnect the observer during component teardown
  • add regression coverage for observer creation, resize callback forwarding, and cleanup

Fixes #824

Validation

  • npx prettier --check projects/angular-gridster2/src/lib/gridster.ts projects/angular-gridster2/src/lib/tests/gridster.spec.ts
  • npx eslint projects/angular-gridster2/src/lib/tests/gridster.spec.ts
  • git diff --check
  • npm run test-lib -- --watch=false
  • npm run build-lib

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.

Suggestion: track resize with ResizeObserver.

1 participant