Skip to content

fixed bug with dimple height being incorrect#11

Open
MaikoHermans wants to merge 2 commits intoeoghain:masterfrom
MaikoHermans:master
Open

fixed bug with dimple height being incorrect#11
MaikoHermans wants to merge 2 commits intoeoghain:masterfrom
MaikoHermans:master

Conversation

@MaikoHermans
Copy link

when the interItemSpacingY is set to 0 the dimple was being drawn to high because of the following line viewRect.origin.y -= additionalHeight * 2;
by checking if the height is smaller or equal to 10 the accurate height can be given to the dimple.

also when the interItemSpacingY was set to a - value the dimple wouldn't draw like supposed to. this is also fixed with the added code


if(height <= 10){
height = additionalHeight * 2;
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should match existing file indenting and code style (i.e. tab indentation, curly braces on new lines aligned with start of block, etc.). This is just good practice when working in someone elses code base.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird that it did that. When I edited it it was the same code style. Thanks for telling me tho next time I'll be sure to take a better look at it. Also after some more testing with it it seems that this bug occurred because of the way I set up my layout

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

Successfully merging this pull request may close these issues.

2 participants