-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[HOLD for payment 2022-02-09] Attachment modal ui freeze/unfreeze when long height image displayed - reported by @PrashantMangukiya #7012
Comments
Triggered auto assignment to @alex-mechler ( |
This doesnt look frozen, it looks more like we cannot move the image unless it is zoomed, like mentioned in the report
This is purely on the client side, so this should be able to go external. |
Triggered auto assignment to @JmillsExpensify ( |
Reason App/src/components/ImageView/index.native.js Lines 64 to 73 in 7af06bc
To solve this issue, we must also check whether imageHeight is greather than windowHeight or not. Proposal ImageSize.getSize(this.props.url).then(({width, height}) => {
let imageWidth = width;
let imageHeight = height;
const aspectRatio = (imageHeight / imageWidth);
if (imageWidth > this.props.windowWidth) {
imageWidth = Math.round(this.props.windowWidth);
imageHeight = Math.round(imageWidth * aspectRatio);
}
+ if(imageHeight>this.props.windowHeight - variables.contentHeaderHeight) {
+ imageHeight = Math.round(this.props.windowHeight - variables.contentHeaderHeight)
+ imageWidth = Math.round(1/aspectRatio * imageHeight)
+ }
this.setState({imageHeight, imageWidth});
}); |
Thanks for the video! Super helpful. Posting to Upwork now and we'll get a reviewer on this as well! |
Upwork is here: https://www.upwork.com/jobs/~0139e45ab43993899b. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @deetergp ( |
Nice catch @sobitneupane. The proposal looks good. cc: @deetergp 🎀 👀 🎀 C+ reviewed |
@sobitneupane's proposal looks good. Let's make sure we add some comments explaining why this bit of code is necessary. |
Okay. |
Should I wait until the issue is assigned to me? Or Should I proceed my PR? |
You can proceed to create the PR. @deetergp can assign you later |
Thanks for the PR, @sobitneupane! Did we end up hiring you for the job in Upwork? |
@deetergp No. Not yet. I have applied for the job. |
@JmillsExpensify let's hire & pay @sobitneupane for the work 👍 |
Jumping in now! |
I took a look at the associated PR and it's still in the process of getting to staging. In the meantime, I've hired all contributors for this issue and we'll wait for the PR to go through the process of hitting production and waiting for no regressions. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.34-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2022-02-09. 🎊 |
Will hold on this issue pending regressions, per the message above. Circle back then. |
@JmillsExpensify Should I also apply on Upwork job for issue reporting bonus? |
Yes, please! |
Applied on Upwork job. Thank you. |
Payments processed for PR contributor and contributor plus. Will pay out for reporting as soon as the offer is accepted. :) |
Offer accepted. |
Thanks everyone. Closing the issue, though don't hesitate to reach out if I can help with any questions or comments. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
User should be able to zoom, move image around
Actual Result:
Can not move image up/down without minor zoom. (sometime unfreeze and works, but again freeze) This happen when image height larger than screen height etc. Attached is the sample image used.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number:
Reproducible in staging?:
Reproducible in production?:
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Similar issues logged in the past
#6518
#5870
#4867
AttachmentModal.mov
Expensify/Expensify Issue URL:
Issue reported by: @PrashantMangukiya
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1640265916049300
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: