Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadow gets cut at the bottom of the tooltip #150

Closed
anukmc opened this issue Jan 27, 2021 · 3 comments
Closed

Shadow gets cut at the bottom of the tooltip #150

anukmc opened this issue Jan 27, 2021 · 3 comments
Assignees
Labels
Released Released already on the latest version.

Comments

@anukmc
Copy link

anukmc commented Jan 27, 2021

Please complete the following information:

  • Library Version v1.3.0

Describe the Bug:

I am using a custom layout for the tooltip that contains a scrollView that has a textView inside.
When I set elevation the shadow is cut at the bottom of the tooltip (see attached screenshot)

val balloon: Balloon = Balloon.Builder(context)
.setLayout(R.layout.balloon_layout)
.setArrowSize(15)
.setWidth(400)
.setArrowColorResource(R.color.white)
.setBackgroundColorResource(R.color.white)
.setArrowConstraints(ArrowConstraints.ALIGN_ANCHOR)
.setArrowOrientation(arrowOrientation)
.setArrowPosition(0.5f)
.setTextSize(15f)
.setCornerRadius(6f)
.setElevation(5)
.setAlpha(1.0f)
.setTextColor(ContextCompat.getColor(context, R.color.steel))
.setBalloonAnimation(BalloonAnimation.FADE)
.build()

Screen Shot 2021-01-27 at 3 59 43 PM

@Canato
Copy link

Canato commented Jan 27, 2021

This looks like you parent view is directly connect with it. Can you try to set setMarginBottom(8) and see if fix?

@anukmc
Copy link
Author

anukmc commented Jan 27, 2021

Unfortunately this doesn't seem to fix the issue.

@skydoves skydoves self-assigned this Jan 28, 2021
@skydoves skydoves added the Release Next This feature will be released on next version label Jan 28, 2021
@skydoves
Copy link
Owner

Released a new version 1.3.1!
Please check about this issue :)

@skydoves skydoves added Released Released already on the latest version. and removed Release Next This feature will be released on next version labels Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Released Released already on the latest version.
Projects
None yet
Development

No branches or pull requests

3 participants