# How do you handle layout rendering and computed height in production APK?

**URL:** https://community.thunkable.com/t/how-do-you-handle-layout-rendering-and-computed-height-in-production-apk/4108642
**Category:** Questions about Thunkable X
**Created:** [May 17, 2026, 5:23pm UTC](https://community.thunkable.com/t/how-do-you-handle-layout-rendering-and-computed-height-in-production-apk/4108642 "2026-05-17T17:23:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![cicraf](https://avatars.discourse-cdn.com/v4/letter/c/cdc98d/32.png) [@cicraf](https://community.thunkable.com/u/cicraf)
#### Post date: [May 17, 2026, 5:23pm UTC](https://community.thunkable.com/t/how-do-you-handle-layout-rendering-and-computed-height-in-production-apk/4108642/1 "2026-05-17T17:23:56Z")

</div>

Hi everyone,

I’ve been struggling with a layout rendering issue in production APK on Android and I’d love to hear how other developers handle this.

**The problem:** `Screen Computed Height` always returns 0 in production APK. `Layout Computed Height` returns the static value set in the designer, not the real device screen height. This makes it impossible to dynamically calculate the correct layout height across different devices.

**My current workaround:** I’m using a `forever` loop on `when Screen Opens` that waits until `Map Computed Height >= 100`, then calculates the layout height from there. The loop only works correctly if I add a `wait 0` block before the `if` condition — without it, the computed height is never calculated even inside the loop.

This feels very fragile and I’m not confident it will work consistently across all devices.

**My questions:**

- How do you reliably get the real device screen height at runtime in a production APK?

- Is `wait 0` a known pattern in Thunkable to force the UI thread to sync?

- Is there a cleaner way to handle layout sizing that doesn’t rely on computed height at all?

Any help or alternative approach is appreciated. Thanks!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)
#### Post date: [August 15, 2026, 5:24pm UTC](https://community.thunkable.com/t/how-do-you-handle-layout-rendering-and-computed-height-in-production-apk/4108642/2 "2026-08-15T17:24:46Z")

</div>

This topic was automatically closed after 90 days. New replies are no longer allowed.
