# Setting a component's height in Data Viewer doesn't work

**URL:** <https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032>\
**Category:** Questions about Thunkable X\
**Created:** [June 2, 2021, 8:22pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032 "2021-06-02T20:22:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [June 2, 2021, 8:22pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/1 "2021-06-02T20:22:48Z")

</div>

I want to set the Label’s height in the Data Viewer list, but this block just don’t work:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/64d2eefc58cff610a84d300f489552830e35f62b.png)

---

<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 2, 2021, 8:35pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/2 "2021-06-02T20:35:15Z")

</div>

The “row id” block requires a component ID value. You just put in the string “1” but that doesn’t refer to anything in Thunkable. Each component in Thunkable has its own ID which is a long string of characters like 589w3r8fshdl24589wt.

If you just want the height to be different always, then you should make a custom data viewer list layout and make the height whatever you want manually.

If you need to change it dynamically using blocks, then I’m curious if you are trying to change the label height for the first item/row in the Data Viewer List or for all items/rows?

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [June 2, 2021, 8:47pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/3 "2021-06-02T20:47:26Z")

</div>

> [@tatiang](#):
>
> the string “1” but that doesn’t refer to anything

I was thinking about that as well, but if I try to get a Row’s ID, I get a lot of error messages:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/5/25c5de38bc4ff5292c03de4d244194cf50adb933.png)

> [@tatiang](#):
>
> change it dynamically

I want to change them manually for all rows. I want to have a Data Viewer List that has 6-8 items and I want to make that responsive for all device, what I mean is it should look good on big screens and even on smaller screens, so the Date Viewer List should be full sized (no blank space at the bottom/after the last item). I am thinking about a solution like that:

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

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [June 2, 2021, 8:56pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/4 "2021-06-02T20:56:19Z")

</div>

I was also trying to make that using Advanced Biding like this:

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/5/f5bc83e6035eee135e180a3e56d4c1d468b63751.png)

But the app crashes:

 ![IMG_0D5B94CB0AAB-1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/4/24c81cb868469f8f716f21f307d8372d9cccdcd6.jpeg)

---

<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 2, 2021, 9:02pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/5 "2021-06-02T21:02:01Z")

</div>

I explained in another topic that I don’t think a binding is going to work because the value you’re using for the height is always going to be a text string, not a number.

I’m not sure how to do what you’re wanting. I understand you want the DVL row height to change dynamically. I just haven’t found a way to do that yet.

You need a way to get the row IDs from a DVL. And I can’t seem to find a way to do that… unless they are the same row IDs as the data source, which is possible. But it sounds like you already tried that.

---

<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 2, 2021, 9:05pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/6 "2021-06-02T21:05:35Z")

</div>

This gives me an internal error in the Blocks tab:

 ![Screen Shot 2021-06-02 at 2.04.52 PM 2(2)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/3/336b9a2eaf6d593f2e3c73c74da0cb2e54489bda.png)

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/237a6b2ae6c8c524bff396c0783855e0c9a37411.png)

---

<div class="post-metadata">

**Author:** ![skulamester](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/skulamester/32/100480_2.png) [@skulamester](https://community.thunkable.com/u/skulamester)\
**Post date:** [June 2, 2021, 9:11pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/7 "2021-06-02T21:11:55Z")

</div>

> [@tatiang](#):
>
> a text string, not a number

I see, it makes sense. So that way it doesn’t work.

> [@tatiang](#):
>
> I just haven’t found a way to do that yet.

Anyway, thanks for your time and ideas.

> [@tatiang](#):
>
> You need a way to get the row IDs from a DVL.

I am on it.

> [@tatiang](#):
>
> This gives me an internal error in the Blocks tab:

On my side it behaves the same way. Is this a bug again?

---

<div class="post-metadata">

**Author:** ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)\
**Post date:** [June 3, 2021, 10:18am UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/8 "2021-06-03T10:18:34Z")

</div>

this error may cause deleting some blocks of your app/game.

---

<div class="post-metadata">

**Author:** ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)\
**Post date:** [June 3, 2021, 10:19am UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/9 "2021-06-03T10:19:57Z")

</div>

I think yes I have got this error on my project and it deleted most of the code.

---

<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, 1:22pm UTC](https://community.thunkable.com/t/setting-a-components-height-in-data-viewer-doesnt-work/1322032/10 "2024-11-08T13:22:07Z")

</div>


