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 textarea height bug #93

Open
wants to merge 4 commits into
base: fomantic-and-asciidocs
Choose a base branch
from

Conversation

VaibhavSaini19
Copy link
Contributor


Description

This PR fixes #50

Have you read the Contributing Guidelines before opening this PR

 


Yes
Notes for Reviewers

 


Screenshot for changes made

 

Screenshot (197)

Copy link
Owner

@gridhead gridhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tch. Doesn't work.

@VaibhavSaini19
Copy link
Contributor Author

Tch. Doesn't work.

Did you try hard-refreshing?

@gridhead
Copy link
Owner

gridhead commented Dec 31, 2020 via email

@VaibhavSaini19
Copy link
Contributor Author

VaibhavSaini19 commented Dec 31, 2020

@s-katte @shivangswain could you please review?

Copy link
Contributor

@s-katte s-katte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thing works at my end in firefox as well as in chrome
image

@VaibhavSaini19
Copy link
Contributor Author

@t0xic0der please check now, i fixed some things

@gridhead
Copy link
Owner

gridhead commented Jan 5, 2021

There's an undue flickering when newlines are added or removed as observed on Firefox. Could you please look into it?

@gridhead
Copy link
Owner

gridhead commented Jan 5, 2021

image

Copy link
Owner

@gridhead gridhead left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The flickering still remains but let's discuss about its nature now. Whenever I am pressing ENTER, the first line heads above the top limit of the text entry field and then falls back to the first line again - which of course is kind of distracting but I suppose the observation might help you debug the issue.

Thanks.

@VaibhavSaini19
Copy link
Contributor Author

The flickering still remains but let's discuss about its nature now. Whenever I am pressing ENTER, the first line heads above the top limit of the text entry field and then falls back to the first line again - which of course is kind of distracting but I suppose the observation might help you debug the issue.

Thanks.

Well, that's because we are updating all the stuff at onkeyup event. So, when you press, say ENTER, it add a new line, but since we have disabled the resize, the content overflows, and then when the ENTER key is released, it calculates the new scrollHeight and sets that as the new height

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.

3 participants