# Thunkable keeps stopping

**URL:** https://community.thunkable.com/t/thunkable-keeps-stopping/1324525
**Category:** Questions about Thunkable X
**Created:** [June 4, 2021, 5:13am UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525 "2021-06-04T05:13:00Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 1:42pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/21 "2021-06-05T13:42:46Z")

</div>

That’s all that happens. I click on the button, the app hangs for around 2 seconds, then shuts down.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 5, 2021, 1:44pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/22 "2021-06-05T13:44:02Z")

</div>

Aha. What’s in the button codes?  
Do you have more than “click” event for the same button?

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 1:45pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/23 "2021-06-05T13:45:28Z")

</div>

Nope. My code:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f001a221cbccf1423de8ed7fdbafd983d78572c3.png)

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 5, 2021, 1:47pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/24 "2021-06-05T13:47:35Z")

</div>

In the “Any Button.Click” add a wait block as the first block. See what happens.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 1:48pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/25 "2021-06-05T13:48:11Z")

</div>

Thanks, doing that.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 1:53pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/26 "2021-06-05T13:53:20Z")

</div>

@muneer You are a genius! I added a wait 0 seconds block, and it worked perfectly! Thank you so much for all your help… I was really confused about that one but you solved it,

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 5, 2021, 1:54pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/27 "2021-06-05T13:54:01Z")

</div>

You are welcome. Glad that this helped.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 1:56pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/28 "2021-06-05T13:56:32Z")

</div>

![WhatsApp Image 2021-06-05 at 19.25.27](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/2/82cfa507de95f184054ed675a8bc9dcba0b24ee3.jpeg)  
Do you know of any way that I can keep all the text in one line? It’s looks horrible at the moment, as well as confusing.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [June 5, 2021, 1:59pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/29 "2021-06-05T13:59:35Z")

</div>

It took me sometime to realize what you mean.  
Do use padding for your component?  
Can you use a smaller font size?

In the “Advanced” tab  
Check the “Positioning”  
There is a “flexwrap” among others.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 3:04pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/30 "2021-06-05T15:04:47Z")

</div>

No, I don’t have padding. I have cloned all these buttons.  
I changed my fantasize to 16 after I noticed the text, but there’s not difference. I’ll try the flex wrap. What does it do?

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 3:15pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/31 "2021-06-05T15:15:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/2/72373fcd71decee03b03dda4de9a3ef9d77ddf15.jpeg)  
I’ve set the flex wrap to Wrap. This is closer to what I want, but

1. Look at the bottom row. Each button is taking up only half the width.
2. You might notice that the button in which the green piece is (19), has extended it height at the bottom, so it is carrying into the space of 2. Also, while flexwrap did not have a value, the cell number text was moving upwards to accommodate the green piece, but now it staying at the same position, and half of the piece is missing.

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [June 5, 2021, 3:42pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/32 "2021-06-05T15:42:17Z")

</div>

I don’t think flexwrap is what you need here. That’s for packing a bunch of components in a row and then wrapping around to the next line.

Looks to me like you either need to reduce font size or padding - you might see if a negative padding value is accepted.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 3:42pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/33 "2021-06-05T15:42:57Z")

</div>

Wouldn’t a negative padding value send the text across the borders, though? As for font size, I have it at 16. I’ll reduce it and see what happens.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 4:19pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/34 "2021-06-05T16:19:48Z")

</div>

Did some tinkering but it’s still like this:

 ![Screenshot_2021-06-05-21-48-42-93_2bbfbfee96a5dfce998f962ebb8b5da3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/9/b92d3d232dbc4f173904f164d8a4157b543e019b.png)

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [June 5, 2021, 4:25pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/35 "2021-06-05T16:25:40Z")

</div>

Buttons seem to have some build in padding. That’s why I suggested trying a negative value

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [June 5, 2021, 4:26pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/36 "2021-06-05T16:26:06Z")

</div>

I’d hard code the button width to fix the bottom row

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 4:35pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/37 "2021-06-05T16:35:05Z")

</div>

Any suggestions on what to set it as?

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 5, 2021, 4:40pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/38 "2021-06-05T16:40:26Z")

</div>

Wouldn’t width=fill container work on that bottom row? Or 100%.

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 5, 2021, 4:43pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/39 "2021-06-05T16:43:33Z")

</div>

I can’t really differentiate between each row, as I am cloning them. I can’t use different properties depending upon which row that is.

---

<div class="post-metadata">

### Author: ![catsarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/catsarisky/32/100661_2.png) [@catsarisky](https://community.thunkable.com/u/catsarisky)
#### Post date: [June 5, 2021, 4:49pm UTC](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525/40 "2021-06-05T16:49:04Z")

</div>

> [@codeswept](#):
>
> Any suggestions on what to set it as?

Yes. Screenwidth / number of blocks minus any margin between them.

[Previous page](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525.md?page=1)

[Next page](https://community.thunkable.com/t/thunkable-keeps-stopping/1324525.md?page=3)
