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

URL parameter for upper-left location #256

Open
AFFogarty opened this issue May 14, 2015 · 1 comment
Open

URL parameter for upper-left location #256

AFFogarty opened this issue May 14, 2015 · 1 comment

Comments

@AFFogarty
Copy link
Contributor

Right now, you can specify x and y location by ?x=123&y=456 in the page URL and Diva will automatically open to that location. x and y are calculated as offsets from the centre of the page.

It would be nice if you could give ?ulx=123&uly=456 parameters to open at (123,456) from the top-left of the page.

@ahwitz
Copy link
Member

ahwitz commented May 14, 2015

For what it's worth https://github.com/DDMAL/diva.js/blob/master/source/js/diva.js#L2527 takes "top" and "left" as parameters. Should be relatively easy to hook something of that pattern into setState.

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

3 participants