Skip to content

Commit

Permalink
fix tooltip distance when using wide view targets and rectangle shapes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Wild committed Apr 4, 2019
1 parent bfa1971 commit e281beb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void updateTarget(Target target) {

@Override
public int getTotalRadius() {
return (width / 2) + padding;
return (height / 2) + padding;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void presentShowcaseView() {
sequence.addSequenceItem(

new MaterialShowcaseView.Builder(this)
.setTarget(mButtonShow)
.setTarget(toolbar)
.setToolTip(toolTip1)
.withRectangleShape()
.setTooltipMargin(30)
Expand Down

0 comments on commit e281beb

Please sign in to comment.