You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Carousel scrolling arrows move up an down on pdf password protected attachment #21723
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
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
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.
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.
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.
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
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.
@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.
cc @parasharrajat
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributors
Activity
melvin-bot commentedon Jun 27, 2023
Triggered auto assignment to @mallenexpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 27, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)mallenexpensify commentedon Jun 30, 2023
Unable to reproduce, @lanitochka17 , can you try again to see if you can?
RPReplay_Final1688087070.MP4
lanitochka17 commentedon Jun 30, 2023
@mallenexpensify Issue reproducible in mWeb/Chrome.
video_30.1.mp4
Sorry for confusion.
melvin-bot commentedon Jul 3, 2023
@mallenexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Jul 5, 2023
@mallenexpensify Eep! 4 days overdue now. Issues have feelings too...
mallenexpensify commentedon Jul 6, 2023
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?
lanitochka17 commentedon Jul 9, 2023
@mallenexpensify Reproducible in Android/Chrome
7 remaining items
melvin-bot commentedon Jul 11, 2023
Current assignee @mallenexpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 11, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (
External)mallenexpensify commentedon Jul 11, 2023
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
tienifr commentedon Jul 12, 2023
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
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.
parasharrajat commentedon Jul 12, 2023
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.
tienifr commentedon Jul 13, 2023
@parasharrajat it only happens in Android Chrome and not on any other small-device platforms, do you think it's a valid inconsistency?
parasharrajat commentedon Jul 13, 2023
We can definitely fix this but not so important.
mallenexpensify commentedon Jul 14, 2023
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
mallenexpensify commentedon Jul 17, 2023
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.
tienifr commentedon Jul 18, 2023
@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.

cc @parasharrajat