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

moveMarker(View view, double x, double y) doesn't has anchorX and anchorY #148

Closed
huhuang03 opened this issue Nov 24, 2014 · 2 comments
Closed

Comments

@huhuang03
Copy link

Can you offer an api :
moveMarker(View view, double x, double y, float anchorX, float anchorY)
just like
addMarker(View view, double x, double y, float anchorX, float anchorY)。

Because if i move the marker that has an anchorX and anchorY(-1.0, -0.5) like this
moveMarker(View view, x - view.getWidth(), y - view.getHeight() / 2),
but there still have a offset。
If I do it like this: removeMarker(view); addMarker(view, newX, newY). It work well.

@moagrius
Copy link
Owner

So the short answer is "yes" - I'm planning on making some updates over the holiday break, and this would be a pretty simple addition.

The longer answer is: if you have the changes on a fork, feel free to PR - contributions are always welcome.

@moagrius
Copy link
Owner

I've updated the old method and added the signature you mentioned. Note that I have not released a new .jar, you'll need to grab the source, nor have I updated the docs (just moved to AS from Eclipse, which had those tasks pretty well baked-in, still getting used to AS).

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

No branches or pull requests

2 participants