Skip to content
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

Maximizing the canvas #1189

Closed
snapey opened this issue Jul 22, 2022 · 2 comments
Closed

Maximizing the canvas #1189

snapey opened this issue Jul 22, 2022 · 2 comments
Labels
question Further information is requested
Milestone

Comments

@snapey
Copy link

snapey commented Jul 22, 2022

Question:

When loading an image that has, for instance, a tall aspect ratio, the canvas is set to the dimensions of the loaded image, and then when panning and zooming, the image is obviously constrained to the shape of the canvas.

If I have a large area available for the canvas, I would prefer for it to use as much space as possible, initially resizing the image to fit the bounds, but then on zooming expand out to use the available canvas

eg, on initial load;
The_Radiology_Academy_test

when zooming and panning;
The_Radiology_Academy_test

Is there a method to fix the canvas size and have the image initially fit the canvas?

@ivmartel ivmartel added the question Further information is requested label Aug 1, 2022
@ivmartel ivmartel added this to the 0.31.0 milestone Aug 1, 2022
@ivmartel
Copy link
Owner

ivmartel commented Aug 1, 2022

This behaviour was changed with the fix to #1182 (available in the next release). It should now be as you describe, using the full canvas size.

@ivmartel
Copy link
Owner

I hope this fixed your problem, closing for now, feel free to comment if you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants