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.

Setting larger arrow size causes text to be clipped

See original GitHub issue

When we increase the size of the arrow, it seems to be causing the entire balloon to shrink, which also causes the text to be clipped:

image

Our settings are roughly like this:

Balloon.Builder(context)
    .setText(text)
    .setArrowConstraints(ArrowConstraints.ALIGN_ANCHOR)
    .setArrowOrientation(ArrowOrientation.TOP)
    .setArrowSize(24)
    .setPadding(16)
    .setTextSize(14f)
    .build();

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dbrantcommented, Aug 17, 2020

This still does not have any effect on the margins (using 1.2.2-alpha01):

image

Here is the same code using the latest stable 1.2.1 (setting xOff does not have any effect either, but it looks like there are some default margins):

image

0reactions
skydovescommented, Sep 2, 2020

Hi, @dbrant. It is released a new version 1.2.2. Now we can use below new methods without any constraints.

Margin

If the location of the balloon according to the anchor is located at the boundaries on the screen, the balloon will be stick to the end of the screen. In that case, we can resolve by giving margins to the balloon.

.setMargin(12) // sets the margin on the balloon all directions.
.setMarginLeft(14) // sets the left margin on the balloon.
.setMarginRight(14) // sets the right margin on the balloon.

Thanks for your issue!

Read more comments on GitHub >

github_iconTop Results From Across the Web

text-size-adjust - CSS: Cascading Style Sheets - MDN Web Docs
When an element containing text uses 100% of the screen's width, the algorithm increases its text size, but without modifying the layout. The ......
Read more >
Trying to resize △▽ symbols inside list in a table th, but font ...
This still results in large arrows. Can anyone else confirm that it's a firefox only issue? This is just weird, I'll probably just...
Read more >
Tip: How to cut and paste without messing up formatting
Using the Paste Options button. Click the down-arrow on the Paste Options button and you'll see a menu with icons that lets you...
Read more >
Adjust timeline clip appearance in Final Cut Pro - Apple Support
To decrease the size of audio waveforms for timeline clips, press Control-Option-Down Arrow. To adjust the vertical height of clips in the timeline,...
Read more >
How to stop text spilling over in Excel - Ablebits
Learn what causes words and paragraphs to overflow into the next columns and how to prevent Excel cells from spilling over.
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