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
-
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::State
andiced_native::widget::image::viewer::Viewer
are structurally separate.How can I solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions