sephiroth74 / android-target-tooltip

Create Toast like tooltips, but targets can be specified, plus custom properties and features
MIT License
1.49k stars 278 forks source link

Tooltip not shown when no maxWidth #130

Open mtrakal opened 5 years ago

mtrakal commented 5 years ago

current source code, from today.

comment in demo app: MainActivity.kt -> // .maxWidth(metrics.widthPixels / 2) and set Too long text (two lines), after no Tooltip is shown. It wrongly calculate size of tooltip window and not shown any tooltip when tooltip is too wide.

Tooltip.kt:632 findPosition return null in this case.

Dararii commented 5 years ago

yes, I have same issue. We have to define max width.