-
Notifications
You must be signed in to change notification settings - Fork 141
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
There was a problem hiding this 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"; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this 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
Fixes #431
Checklist
master
branch.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.
Changes proposed in this pull request:
-Make textarea to type messages expand and contract vertically according to the size of the message being typed.