Skip to content

setMinimumScaleMode and setSize #337

@krabo0om

Description

@krabo0om

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions