-
-
Notifications
You must be signed in to change notification settings - Fork 595
fix: Updated resizable file wrappers #1914
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-ai
@blocknote/xl-docx-exporter
@blocknote/xl-email-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
eventCaptureElement.style.height = "100%"; | ||
eventCaptureElement.style.width = "100%"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for this to work properly it depends on the parent being relative. Can we force the parent to have position relative
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My only question on this is why rename it?
This PR updates the component/function for the resizable file wrapper. As well as some simplifying and renaming, the main change is adding an invisible element on resize. This fixes janky behaviour that can be seen in the PDF example, and other blocks using
embed
,iframe
, and other, similar elements. More information about what this does is commented in the code.