Skip to content

Firefox TextArea height issue#7210

Merged
NikkiWines merged 4 commits into
Expensify:mainfrom
kursat:job-7103
Jan 17, 2022
Merged

Firefox TextArea height issue#7210
NikkiWines merged 4 commits into
Expensify:mainfrom
kursat:job-7103

Conversation

@kursat

@kursat kursat commented Jan 13, 2022

Copy link
Copy Markdown
Contributor

Details

Firefox adds height to the TextArea to reserve place for scroll-bars. Because of that, initial heights are different in firefox and chrome. This causes scrollHeight difference and height issue on firefox.

Fixed Issues

$ #7103

Tests

  • Verify that no errors appear in the JS console
  1. Go to a conversation
  2. In compose textarea verify "Write something..." aligned correctly.
  3. Verify empty textarea is 1 line.
  4. Verify text with 2+ lines is not scrolling.
  5. Edit a previous message.
  6. Repeat 3 and 4.

QA Steps

  • Verify that no errors appear in the JS console
  1. Go to a conversation
  2. In compose textarea verify "Write something..." aligned correctly.
  3. Verify empty textarea is 1 line.
  4. Verify text with 2+ lines is not scrolling.
  5. Edit a previous message.
  6. Repeat 3 and 4.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

number-of-rows-chrome.mp4
number-of-rows-firefox.mp4

Mobile Web

number-of-rows-chrome-mobile.mp4
number-of-rows-firefox-mobile.mp4

Desktop

number-of-rows-desktop.mp4

iOS

number-of-rows-ios.mp4

Android

number-of-rows-android.mp4

@kursat kursat requested a review from a team as a code owner January 13, 2022 19:10
@MelvinBot MelvinBot requested review from NikkiWines and rushatgabhane and removed request for a team January 13, 2022 19:10
@kursat

kursat commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

Hey, I'll add desktop and ios screenshots asap.

@kursat

kursat commented Jan 13, 2022

Copy link
Copy Markdown
Contributor Author

updated

@rushatgabhane

rushatgabhane commented Jan 13, 2022

Copy link
Copy Markdown
Member

@kursat Looks like there's some extra height at the top for iOS
Screenshot_20220114-014716~2

@kursat

kursat commented Jan 17, 2022

Copy link
Copy Markdown
Contributor Author

Hey @rushatgabhane, I checked this problem, it was already there before my solution. Should I still fix that? If I should, should I cancel the PR and re-propose?

@kursat Looks like there's some extra height at the top for iOS Screenshot_20220114-014716~2

@rushatgabhane

Copy link
Copy Markdown
Member

@kursat thanks so much for checking it out! In that case, no need to fix it in this PR. It's unrelated to the issue.

@rushatgabhane rushatgabhane left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM! 🎉
All yours @NikkiWines

@NikkiWines NikkiWines left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍 Looks good

@NikkiWines NikkiWines merged commit 300d335 into Expensify:main Jan 17, 2022
@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@NikkiWines

Copy link
Copy Markdown
Contributor

@kursat just FYI I believe we generally prefer to have more descriptive PR titles

@kursat

kursat commented Jan 18, 2022

Copy link
Copy Markdown
Contributor Author

Hey @NikkiWines, sorry I didn't notice the title. It was my branch name. Will be more careful next time.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @NikkiWines in version: 1.1.30-4 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @chiragsalian in version: 1.1.31-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

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.

4 participants