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

setMinimumScaleMode and setSize #337

Closed
krabo0om opened this issue Aug 20, 2016 · 2 comments
Closed

setMinimumScaleMode and setSize #337

krabo0om opened this issue Aug 20, 2016 · 2 comments

Comments

@krabo0om
Copy link

Hey,
After the instantiation of TileView I set the scale mode. Because I'm reusing the instance I call setSize() after that a couple of times leading to a not working setScale() (mEffectiveMinScale was infinity because of the mBaseWidth == 0).

To avoid frustrating searches for the "bug" could you please add a hint in the documentation for setMinimumScaleMode() that setSize() has to be called first or recalculate the scaling limits when the size is set?
Thanks for the great framework.

@moagrius
Copy link
Owner

48691f8 should fix this - can you confirm? if works, i'll generate a release

thanks

@krabo0om
Copy link
Author

looks good. thanks

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