Skip to content

fix: anchored teleport - #7027

Merged
mergify[bot] merged 4 commits into
modrinth:mainfrom
creeperkatze:fix-anchored-teleport
Aug 7, 2026
Merged

fix: anchored teleport#7027
mergify[bot] merged 4 commits into
modrinth:mainfrom
creeperkatze:fix-anchored-teleport

Conversation

@creeperkatze

Copy link
Copy Markdown
Contributor

Fixes TeleportPopoutMenu panels rendering slightly misaligned on open.

Before, the position calc read the panel's size via getBoundingClientRect(), which is transform-aware, while the panel was still mid scale-in transition, so it computed a wrong width/height and placed the panel off.

Scrolling the page then retriggered the calc, making it visibly snap into the correct spot. Now it uses offsetWidth/offsetHeight, which ignore CSS transforms, so the position is correct on the very first measurement.

@creeperkatze

Copy link
Copy Markdown
Contributor Author

Before:

After:

@Prospector

Copy link
Copy Markdown
Member

@Mergifyio queue

@mergify

mergify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Merge Queue Status

This pull request spent 5 minutes 37 seconds in the queue, including 4 minutes 58 seconds running CI.

Required conditions to merge

Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com>
Signed-off-by: Prospector <6166773+Prospector@users.noreply.github.com>
@mergify mergify Bot added the queued label Aug 7, 2026
@mergify
mergify Bot merged commit 9625740 into modrinth:main Aug 7, 2026
12 checks passed
@mergify mergify Bot removed the queued label Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants