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

fitSelection centered #159

Open
krnlde opened this issue Nov 13, 2019 · 3 comments
Open

fitSelection centered #159

krnlde opened this issue Nov 13, 2019 · 3 comments

Comments

@krnlde
Copy link
Contributor

krnlde commented Nov 13, 2019

Bug reports:

Currently fitSelection always fits the selection to the top left of the viewport. It should behave similar to fitToViewer where you are able to pass the preferences as parameters. Right now there is no way to enforce that other than calculating it myself.

@chrvadala
Copy link
Owner

Thanks for your suggestion. Probably some lines of code can be copied from fitToViewer function.
I'll include this feature in a future version (anyway any PR is appreciated).

@wsd1
Copy link

wsd1 commented Jun 13, 2020

Adjust your 'fitSelection' area equal to viewport's width/height ratio. This may be a workaround.

@Rehre
Copy link

Rehre commented Oct 13, 2020

any update on this ? or is there any workaround that we can do first ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants