Skip to content

Commit

Permalink
Fix improper calculation of height
Browse files Browse the repository at this point in the history
  • Loading branch information
yucombinator committed Mar 17, 2016
1 parent e5f3d21 commit c53b709
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public Point getPoint(){

@Override
public int getHeight() {
return getRadius();
return 2 * getRadius();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public void run() {
((RelativeLayout) infoView).setGravity(Gravity.TOP);
infoDialogParams.setMargins(
0,
targetShape.getPoint().y + targetShape.getHeight(),
targetShape.getPoint().y + targetShape.getHeight() / 2,
0,
0);
} else {
Expand All @@ -485,7 +485,7 @@ public void run() {
0,
0,
0,
height - (targetShape.getPoint().y + targetShape.getHeight()) + 2 * targetShape.getHeight());
height - (targetShape.getPoint().y + targetShape.getHeight() / 2) + 2 * targetShape.getHeight() / 2);
}

infoView.setLayoutParams(infoDialogParams);
Expand Down

0 comments on commit c53b709

Please sign in to comment.