Skip to content

AvatarView cornerRadius changes when interact with segmented control view #23

@Jackson0111

Description

@Jackson0111

I have found a UI bug. See the sceenshots:

screen shot 2016-05-25 at 5 10 31 pm

screen shot 2016-05-25 at 5 11 01 pm

You can see its cornerRadius changed when the view is scrolled up a little and segmented control view is tapped. I think I have found the problem.

In DBProfileAvatarView.m, the imageView's cornerRadius is determined by self.frame. But when the animation happens its cornerRadius value is changed. See screenshots:

screen shot 2016-05-25 at 5 13 55 pm

I simply just changed self.frame to self.bounds, this issue went away. See screenshots:
screen shot 2016-05-25 at 5 16 44 pm

I would like to do a pull request to contribute, but frankly I've never done that and don't know how...... Anyway, hope this helps, and let me know what you think.

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