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

Enable y-scroll on textarea resize #132

Open
share-with-me opened this issue May 19, 2017 · 2 comments
Open

Enable y-scroll on textarea resize #132

share-with-me opened this issue May 19, 2017 · 2 comments

Comments

@share-with-me
Copy link
Contributor

The originalText textarea populates itself with text input by user and dynamically resizes to the height of the content. However, if we resize the originalText textarea (vertically) by manually dragging the bottom corner, and decrease its height as compared to the text content height, it does not give a y-scroll. Thus, a user would not be able to view the entire contents of the textarea. I would like to add a y-scroll to the originalText in the above scenario. The following link has the demo of the issue: Link

Please note that the destinationText textarea does enable y-scroll in case its height decreases as compared to its contents height and I aim to have a similar functionality for originalText too!
I am using Firefox. I am unable to test this on Chrome and Safari as both of them are not giving me an option to resize the textarea in the first place.

@share-with-me
Copy link
Contributor Author

Here is an attempt to achieve above functionality. Please note the y-scroll on originalText when its height changes with respect to its contents.
Demo
Would refactor to create a patch soon.

@sushain97
Copy link
Member

Assigning to myself since #152 is blocked by me figuring out sane requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants