Tooltip not centered
See original GitHub issuePlease 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
.
Expected Behavior:
The tooltip appears centered horizontally over the text label.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s working now, thanks!
It will be released on 1.1.4 today. Thank you 😃