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
the result is an image constrained by it's viewport.
This creates an in my opinion somewhat unexpected result when zooming into the image:
On a blank screen with just the viewer, the image can never exceed the original bounds even when zoomed in even if space would be available.
Image displayed in full window, no zooming (container has centerx, centery hence in middle):
Slightly zoomed and moved with explain turned on, image now cut off on the right:
As width/height are specified as Length::Fill my expectation would have been that the image expands as far as it can within those constraints, not stay bound to it's original size.
Did I miss something or is this currently not possible?
From what I can see this is due to the layout function in viewer.rs always receiving the same width / height, not letting them be bigger than the initially displayed image. If I do an ugly hack and replace renderer.dimensions(&self.handle) with hardcoded values, I get my desired effect, but I didn't see an obvious way to do it cleanly.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
This is both a question and depending on if I missed something a feature request.
Right now, when using the viewer as follows:
the result is an image constrained by it's viewport.
This creates an in my opinion somewhat unexpected result when zooming into the image:
On a blank screen with just the viewer, the image can never exceed the original bounds even when zoomed in even if space would be available.
Image displayed in full window, no zooming (container has centerx, centery hence in middle):


Slightly zoomed and moved with explain turned on, image now cut off on the right:
As width/height are specified as
Length::Fill
my expectation would have been that the image expands as far as it can within those constraints, not stay bound to it's original size.Did I miss something or is this currently not possible?
From what I can see this is due to the
layout
function inviewer.rs
always receiving the same width / height, not letting them be bigger than the initially displayed image. If I do an ugly hack and replacerenderer.dimensions(&self.handle)
with hardcoded values, I get my desired effect, but I didn't see an obvious way to do it cleanly.The text was updated successfully, but these errors were encountered: