Skip to content

feat: add resizable option to detached glass via can-resize attribute#94

Merged
ohxyz merged 1 commit into
mainfrom
feat/detached-glass-can-resize
Jun 23, 2026
Merged

feat: add resizable option to detached glass via can-resize attribute#94
ohxyz merged 1 commit into
mainfrom
feat/detached-glass-can-resize

Conversation

@ohxyz

@ohxyz ohxyz commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a resizable option to detached/windowless glass, mirroring the existing draggablecan-drag convention.

  • DetachedGlass accepts resizable (default true) and sets can-resize="<bool>" on the glass element.
  • resize.js skips adding resize handles when can-resize="false" — since the resize pointerdown only fires on a handle element, no handles means no resizing.
  • Documented options.resizable on addWindowlessGlass.

Test plan

  • New detached-glass.test.js: can-resize defaults to "true", becomes "false" when resizable: false. All detached-glass tests pass.
  • Dev page (bwin-detached-windowless-glass): added a "non-resizable glass" button; set resizable: false on the fullscreen popup.

@ohxyz ohxyz requested a review from bhjsdev as a code owner June 23, 2026 06:26
@ohxyz ohxyz merged commit 53ff0d6 into main Jun 23, 2026
@ohxyz ohxyz deleted the feat/detached-glass-can-resize branch June 23, 2026 06:31
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