question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tooltip not centered

See original GitHub issue

Please complete the following information:

  • Library Version 1.1.2
  • Affected Device(s) Emulator

Describe the Bug:

packageEdit.setOnClickListener {
    packageTitle.showBalloon(this)
}

packageTitle is the label where it should appear centered. Settings:

setArrowSize(10)
//        setWidthRatio(1.0f)
setHeight(65)
setPadding(0)
setDismissWhenTouchOutside(true)
setPaddingLeft(10)
setPaddingRight(10)
//        setArrowPosition(.5f)
setSpace(10)
setCornerRadius(10f)
setAlpha(1f)
setTextColorResource(R.color.white)
setBackgroundColorResource(R.color.colorAccent)
setOnBalloonClickListener {
    onClick?.invoke()
}
setBalloonAnimation(BalloonAnimation.ELASTIC)
setLifecycleOwner(lifecycleOwner)

Happens when using in RecyclerView. Position seems to be random, on other cells it appears at different non-centered positions. I haven’t tested without RecyclerView.

Screen Shot 2020-03-24 at 15 53 33

Expected Behavior:

The tooltip appears centered horizontally over the text label.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ivanschuetzcommented, Apr 3, 2020

It’s working now, thanks!

1reaction
skydovescommented, Mar 31, 2020

It will be released on 1.1.4 today. Thank you 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tooltip not centered - Material Design for Bootstrap
Connect with:​​ I use tooltip on floating social buttons. I updated to latest version and it is not centered anymore. Please insert min....
Read more >
Bootstrap 4 tooltips not centered - Stack Overflow
I resolved this by using flex: 0 0 250px on the sidebar and flex: 0 0 auto on the content div instead of...
Read more >
Tooltips not centered · Issue #25013 · twbs/bootstrap - GitHub
I am getting bizarre results with my tooltips. They are not centered properly. Please see this fiddle: https://jsfiddle.net/uf0epmxm/6/ I ...
Read more >
Tooltip not centered when shown for svg elements
The Tooltip is not centered and appears to the left of the element it is shown for. Expected/desired behavior. The tooltip is centered....
Read more >
Tooltips - Bootstrap
When triggered from hyperlinks that span multiple lines, tooltips will be centered. Use white-space: nowrap; on your <a> s to avoid this behavior....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found