Skip to content

Ensure correct modal is sized#17

Merged
Syxton merged 1 commit intoSyxton:masterfrom
tailetan:wip862861
Feb 25, 2025
Merged

Ensure correct modal is sized#17
Syxton merged 1 commit intoSyxton:masterfrom
tailetan:wip862861

Conversation

@tailetan
Copy link

Hi @Syxton,
I've identified an issue where the sketch modal appears squashed after using the record video feature. Here's how to reproduce it:

Navigate to a forum and create a new post (or any content using TinyMCE with RecordRTC plugin)
Click the Sketch icon - note that the sketch editor appears in full size
Close the modal
Click the record video button, make a recording and attach it
Click Sketch again - you'll notice the modal is now squashed vertically

You can see this behavior in the video here:
https://github.com/user-attachments/assets/ff133cb3-2105-45d9-bb13-1e61398b941a

Root cause: The issue occurs because document.querySelector('.modal-dialog') can't identify the correct modal when a second one is opened.
I've submitted a PR to fix this issue. Please review and merge when possible.

@Syxton Syxton merged commit 472f872 into Syxton:master Feb 25, 2025
4 checks passed
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.

2 participants