Skip to content
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

Fix page reflow on Firefox and Safari #562

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ZihaoZhou
Copy link

Bug: Page reflow / shaking on textarea resizing
Step to reproduce: Open BetterChatGPT with Firefox / Safari, go the end of page, type new line in the textarea.
Fix: Use a hidden buffer textarea, calculate the height using it instead of setting textarea to auto everytime

@zewebdev1337
Copy link

I couldn't figure out what this PR was referring to (skill issue I think) so I merged it into my fork hoping it was what I thought it was and yes, it indeed seems to be what I though.

For anyone who as me is not getting the gist from ZihaoZhou's description, this fixes the behavior where, upon editing a large chunk of text in the textarea, the line where the cursor is positioned gets displaced to the very bottom of the screen and when pressing ctrl-z, the cursor goes out of sight

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.

None yet

2 participants