-
Notifications
You must be signed in to change notification settings - Fork 1.8k
fix: long text box not wrapping #1803
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?
fix: long text box not wrapping #1803
Conversation
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration F
8000
ile (
|
@divyaswormakai is attempting to deploy a commit to the Documenso Team Team on Vercel. A member of the Team first needs to authorize it. |
Hey there, it looks like you haven't accepted our contributor license agreement yet. In order for us to accept your pull request we ask that you please fill out the CLA: |
@Mythie acceptted the contributer license agreement |
name: Fix- Long Text boxes not wrapping
about: Due to react lifecycle and react PDF, when the
Description
The text boxes were not wrapping and as a result the pdf initially took any amount of width required to show the text boxes in the pdf, causing scrolling issue and a bad user experience.
This is due to react component lifecycle, when the page initially renders, and react-pdf is called for rendering, the canvas it generates in the pdf doesn't consider the width of parent of the body of the webpage. It renders as big of space as is requires to showcase the textboxes.
Related Issue
Fixes #1589
Changes Made
We have a function that fixes this with resize but immediately calling the function doesn't work due to the event loop calling this function before rendering. So a setTimeout has been introduced so that they are visible only when the fix is done.
Testing Performed
This is the before clip:
before.mov
After the current changes have been made:
after.mov
Checklist