Skip to content

Fixes #431 Make textarea expand automatically #432

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

satyamtg
Copy link
Member

Fixes #431

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream master branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

Short description of what this resolves:

This makes the textarea to type messages expand and contract vertically according to the size of message which is being typed in real time. This makes reviewing the messages before posting them easier as compared to previous scrollbar implementation.

expected

Changes proposed in this pull request:

-Make textarea to type messages expand and contract vertically according to the size of the message being typed.

@satyamtg satyamtg changed the title Make textarea expand automatically Fixes #431 Make textarea expand automatically Oct 11, 2018
Copy link
Contributor

@fragm3 fragm3 left a comment

Choose a reason for hiding this comment

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

The Text Area is always fixed

Copy link
Member

@rossoskull rossoskull left a comment

Choose a reason for hiding this comment

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

Agree with @fragm3. Maybe you can increase the size for 2-3 lines, but not more than that 🤔

function resizeTextarea(){
var element = this;
setTimeout(function(){
element.style.cssText = "height:auto";
Copy link
Member

Choose a reason for hiding this comment

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

You can do this upto 3 lines as suggested by others. For this put a max height and set overflow-y : auto in the CSS.

Copy link
Member

Choose a reason for hiding this comment

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

@satyamtg can you please look into the changes pointed by akshat.
Once done please ask for a review again. thank you

Copy link
Member

Choose a reason for hiding this comment

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

@satyamtg can you please look into the changes pointed by akshat.
Once done please ask for a review again. thank you

Copy link
Member

@ms10398 ms10398 left a comment

Choose a reason for hiding this comment

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

Please do the suggested changes

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.

Auto expand textarea while typing a message
6 participants