Skip to content

fix(ui-components): resize overlays from their top left corner - #1049

Merged
EdwardMoyse merged 1 commit into
HSF:mainfrom
AnKiT-GaRG2:fix-collections-info-resize
Oct 27, 2026
Merged

EdwardMoyse merged 1 commit into
HSF:mainfrom
AnKiT-GaRG2:fix-collections-info-resize

Conversation

@AnKiT-GaRG2

Copy link
Copy Markdown
Contributor

Fixes #1048.

Cause: Collections Info (and the other right-dock overlays) are opened with a CDK global position strategy anchored at bottom/right. Dragging the bottom right resize handle therefore grew the panel towards the top left, which is the corner that appeared to move, and it could be resized off screen.

Fix: when a resize starts, OverlayComponent re-anchors the pane by its top left corner (wrapper aligned to flex-start, margins converted so the pane does not jump on screen). Dragging the handle now moves the bottom right corner.

Testing: added a unit test covering the re-anchoring; it fails without the change. The overlay specs pass (19 tests), and prettier and eslint are clean. I have not checked the behaviour by hand in a browser, so a visual check of dragging Collections Info and the geometry/event browsers would be welcome.

Overlays such as Collections Info are positioned with a bottom/right
anchor, so dragging the bottom right resize handle grew them towards the
top left and could push them off screen. Re-anchor the overlay by its top
left corner when a resize starts, keeping it where it is on screen.

Fixes HSF#1048
@github-actions

Copy link
Copy Markdown

🚀 Preview deployed: http://phoenix-pr-1049.surge.sh

Built from 67b464e.

@EdwardMoyse
EdwardMoyse merged commit 2329146 into HSF:main Oct 27, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
pull-request — 67b464e5 Deployed Oct 27, 2026 by github-actions[bot]
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.

Collections Info resizes from the wrong corner

2 participants