How to reset the image size and position when changing file handle? #1629
Unanswered
Amazingkenneth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
In the following code, I was able to change the image normally, but I couldn't adjust the zoom to the original full-image-visible state every time I change the image handle.
Click to Expand
showing.the.issue.mp4
I tried to modify the code here but it seemed difficult to reset the image status in the
iced::application::Application::update()becauseiced_native::widget::image::viewer::Stateandiced_native::widget::image::viewer::Viewerare structurally separate.How can I solve this problem?
All reactions