Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: AndroidonLoad event when view width and height are zero#953

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
thomas-coldwell wants to merge3 commits intoDylanVann:main
base:main
Choose a base branch
Loading
fromthomas-coldwell:fix/onload-dimensions

Conversation

@thomas-coldwell
Copy link

@thomas-coldwellthomas-coldwell commentedDec 15, 2022
edited
Loading

Hey@DylanVann 👋

This PR aims to fix an existing issue with theonLoad event not firing on Android when the view style's width or height is zero as documented here#865. There is a similar PR#446 that was opened, but as mentioned in reviews this causes crashes due to the.override(Target.SIZE_ORIGINAL) method being applied to Glide. Instead, this PR follows the recommended way of getting the natural image dimensions as documented here in the Glide repobumptech/glide#781 (comment).

The changes here include:

  • Adds a second target of a Size class with the relevant decoder + transcoder to achieve this
  • Aligns theonLoad method on Android to work in the same way iOS does - reporting the original natural image dimensions
  • Some minor dev setup fixes to get the example app up and running

These changes are best tested with theAutoSize component in the example app - as you can see setting the width to zero still triggers theonLoad event and this example is then rendered correctly.

Beamanator, tgolen, trjExpensify, avishka-codimite, roryabraham, mananjadhav, AndrewGable, hannojg, changwoolab, and Isqueleto reacted with heart emoji
@Beamanator
Copy link

@DylanVann Is there any chance you can let us know your thoughts on this change?@thomas-coldwell and I would be happy to discuss with you if you have any questions / concerns about this update

@Beamanator
Copy link

Bump? 🙃

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@thomas-coldwell@Beamanator

[8]ページ先頭

©2009-2025 Movatter.jp