DBProfileViewController icon indicating copy to clipboard operation
DBProfileViewController copied to clipboard

AvatarView cornerRadius changes when interact with segmented control view

Open Jackson0111 opened this issue 9 years ago • 1 comments

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.

Jackson0111 avatar May 25 '16 21:05 Jackson0111

Here's a screenshot when the issue is fixed with self.bounds btw: screen shot 2016-05-25 at 5 30 42 pm 1

Jackson0111 avatar May 25 '16 21:05 Jackson0111