# How to text wrap when label overflows - HELP!

**URL:** https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120
**Category:** Questions about Thunkable X
**Tags:** beginner, label, help
**Created:** [February 9, 2020, 11:14am UTC](https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120 "2020-02-09T11:14:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![aaron.shajikj6n](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@aaron.shajikj6n](https://community.thunkable.com/u/aaron.shajikj6n)
#### Post date: [February 9, 2020, 11:14am UTC](https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120/1 "2020-02-09T11:14:19Z")

</div>

I am making a decimal to binary conversion app.  
In the app, when the binary equivalent to the decimal contains a lot of numbers (which the label can no longer contain), it overflows out of the screen, on both sides.  
I have tried trying out the different advanced settings of the label but of no use.  
Need urgent help!

The illustration is given below:

 ![h1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/c/ac6945d81a7324ff4c5edd004a2b98a9822d5ab5.png) ![h2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/a/9a02a29e2ee7f7092ea469c0a06605a58f9bb61a.png)

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [February 9, 2020, 12:58pm UTC](https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120/2 "2020-02-09T12:58:00Z")

</div>

In Thunkable X, there are no functions that work with the width screen layout, text, etc., so one of the simplest solutions is to manually wrap a string of digits, for example, if the number of digits in line 16 is exceeded.

1. Get the length of the time line
2. If the length of the time string is greater than 16, then add the first 16 digits to the time variable and delete the first 16 digits from the time string
3. if the length of the temporary string is \> 0, add a newline character to the temporary variable
4. Repeat steps 2-4 in a loop until the length of the time line is greater than 16

---

<div class="post-metadata">

### Author: ![aaron.shajikj6n](https://avatars.discourse-cdn.com/v4/letter/a/4da419/32.png) [@aaron.shajikj6n](https://community.thunkable.com/u/aaron.shajikj6n)
#### Post date: [February 12, 2020, 9:10am UTC](https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120/4 "2020-02-12T09:10:44Z")

</div>

I am a beginner to programming and this and didn’t really fully understand about the time line and concepts you are talking about. Can you provide the code as well?  
Would help a lot.

Thank You in advance.

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [February 12, 2020, 9:33am UTC](https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120/5 "2020-02-12T09:33:57Z")

</div>

Hi, @aaron.shajikj6n! 👋  
I think it’s simple…

Just set the label’s width to Fill Parent, and text allign to center/justify.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/1/c134c27fddb0ec53cd87a9c2f10cf495782abc8e.png)

Before :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/8/683ec998f5304e0476debb1fb85fa8e9ecef0fc0.png)

After :

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/0/10f69605cd59f2de9306a47c20317d1dc421a9fd.png)

Hope this helps you 🙂  
Thanks! 😊

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 11:41am UTC](https://community.thunkable.com/t/how-to-text-wrap-when-label-overflows-help/454120/6 "2024-11-08T11:41:03Z")

</div>


