Defer TooltipPopup show till anchor has been laid out.
This commit is contained in:
parent
244902ecfc
commit
acee65ba25
1 changed files with 1 additions and 0 deletions
|
@ -117,6 +117,7 @@ public class TooltipPopup extends PopupWindow {
|
|||
private void show() {
|
||||
if (anchor.getWidth() == 0 && anchor.getHeight() == 0) {
|
||||
anchor.post(this::show);
|
||||
return;
|
||||
}
|
||||
|
||||
getContentView().measure(View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED),
|
||||
|
|
Loading…
Add table
Reference in a new issue