Skip to content

Commit

Permalink
Fix text not centered correctly inside the marker
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo Orgaz committed May 11, 2016
1 parent ce5bf60 commit 65a52bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ public void setShadowColorFilter(ColorFilter colorFilter) {

/** The visual center of the tear */
public int getCircleCenterY() {
//The view is top aligned, so rad + padding gives the center
//of the oval
return (int) (height / 2 + padding);
//The view is bottom aligned, so the visual center is the center of the
//rotated square with side = rad
return (int) (height - rad * SQRT_2 - padding);
}

public float getCircleRad() {
Expand Down

0 comments on commit 65a52bf

Please sign in to comment.