Skip to content

[$1000] Carousel scrolling arrows move up an down on pdf password protected attachment #21723

Closed

Description

@lanitochka17

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #21367

  1. Login to NewDot
  2. Open chat
  3. Tap password protected pdf
  4. Tap enter password
  5. Tap outside the field to scroll attachments

Expected Result:

Carousel scrolling arrows should stay on the same place

Actual Result:

Carousel scrolling arrows move up an down on pdf password protected attachment

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.33.3

Reproducible in staging?: Yes

Reproducible in production?: Yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

Bug6108537_video_38__1_.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01866c34d89d477b1e
  • Upwork Job ID: 1678914033144700928
  • Last Price Increase: 2023-07-11

Activity

  1. added
    Daily
    Bug
    on Jun 27, 2023
  2. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on Jun 27, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. mallenexpensify commented on Jun 30, 2023

    @mallenexpensify
    Contributor

    Unable to reproduce, @lanitochka17 , can you try again to see if you can?

    RPReplay_Final1688087070.MP4
  5. lanitochka17 commented on Jun 30, 2023

    @lanitochka17
    Author

    @mallenexpensify Issue reproducible in mWeb/Chrome.

    video_30.1.mp4

    Sorry for confusion.

  6. melvin-bot commented on Jul 3, 2023

    @melvin-bot

    @mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

  7. melvin-bot commented on Jul 5, 2023

    @melvin-bot

    @mallenexpensify Eep! 4 days overdue now. Issues have feelings too...

  8. mallenexpensify commented on Jul 6, 2023

    @mallenexpensify
    Contributor

    Unable to reproduce on iOS/Chrome

    RPReplay_Final1688601973.MP4

    Also unable to reproduce on iOS/Safari

    RPReplay_Final1688601772.MP4

    @lanitochka17 , any idea what I might be doing that's not allowing me to reproduce?

  9. lanitochka17 commented on Jul 9, 2023

    @lanitochka17
    Author

    @mallenexpensify Reproducible in Android/Chrome

  10. 7 remaining items

  11. melvin-bot commented on Jul 11, 2023

    @melvin-bot

    Current assignee @mallenexpensify is eligible for the External assigner, not assigning anyone new.

  12. melvin-bot commented on Jul 11, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (External)

  13. mallenexpensify commented on Jul 11, 2023

    @mallenexpensify
    Contributor

    D'oh, I just tried in Android on the native app and wasn't able to reproduce, back to try Android/Chrome.

    Was able to reproduce, for me the arrow started higher then immediately dropped back down to the 'normal' area it was supposed to. Seems like this can be external

  14. tienifr commented on Jul 12, 2023

    @tienifr
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue.

    Carousel scrolling arrows move up an down on pdf password protected attachment

    What is the root cause of that problem?

    This is because when the soft input is open, the default behavior of Chrome in Android is that it will resize the Viewport, so the arrows will be in the center of the new resized Viewport which is above the original location when the keyboard is closed.

    What changes do you think we should make in order to solve the problem?

    We need to make sure to keep the viewport height as is even when the keyboard is open, this is to be consistent with our other platforms.

    This can be done by adding

    <script>
        addEventListener("load", function() {
            var viewport = document.querySelector("meta[name=viewport]");
            viewport.setAttribute("content", viewport.content + ", height=" + window.innerHeight);
        })
    </script>
    

    to below here

    (further explanation is here)

    What alternative solutions did you explore? (Optional)

    Another way to solve this is, instead of making the arrows vertically center in the view, we can calculate the margin top between the arrows and the top of the view manually by using the original height of the view, then add the margin top. This will make sure the location of the arrows not changing when the keyboard is open.

  15. parasharrajat commented on Jul 12, 2023

    @parasharrajat
    Member

    Was able to reproduce, for me the arrow started higher than immediately dropped back down to the 'normal' area it was supposed to. Seems like this can be external

    I think this is just due to a delay in updating the arrow position when the keyboard gets hidden which IMO is not a bug. As the keyboard hides, the arrow reset to the normal position. cc: @mallenexpensify

    A possible correct solution here will be to do the optimizations.

  16. tienifr commented on Jul 13, 2023

    @tienifr
    Contributor

    @parasharrajat it only happens in Android Chrome and not on any other small-device platforms, do you think it's a valid inconsistency?

  17. parasharrajat commented on Jul 13, 2023

    @parasharrajat
    Member

    We can definitely fix this but not so important.

  18. mallenexpensify commented on Jul 14, 2023

    @mallenexpensify
    Contributor

    I think this is just due to a delay in updating the arrow position when the keyboard gets hidden

    Thanks @parasharrajat , this makes me wonder if there are other similar instances in the app. If so, we could fix potentially fix them at once. It is weird that it's inconsistent but that could be for a platform/browser I'm unaware of

  19. mallenexpensify commented on Jul 17, 2023

    @mallenexpensify
    Contributor

    I think the inconsistency has to do with the browser and not on our end. And, it's just a slight difference in the timing before the arrow drops, so I'm going to close. Comment if you disagree.

  20. tienifr commented on Jul 18, 2023

    @tienifr
    Contributor

    @mallenexpensify not only is there the arrow moving that's inconsistent, there's also the black space appearing when the keyboard moves down which looks a bit unsightly as well. Both has the same root cause.
    Screenshot 2023-07-18 at 14 30 05
    cc @parasharrajat

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

Metadata

Metadata

Labels

BugDailyExternalHelp Wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions