# Recalculating the entire GUI to arbitrary dimensions

**URL:** <https://forum.defold.com/t/recalculating-the-entire-gui-to-arbitrary-dimensions/68436>\
**Category:** Questions\
**Created:** [May 14, 2021, 9:25pm UTC](https://forum.defold.com/t/recalculating-the-entire-gui-to-arbitrary-dimensions/68436 "2021-05-14T21:25:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![morgerion](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/morgerion/32/6641_2.png) [@morgerion](https://forum.defold.com/u/morgerion)\
**Post date:** [May 14, 2021, 9:25pm UTC](https://forum.defold.com/t/recalculating-the-entire-gui-to-arbitrary-dimensions/68436/1 "2021-05-14T21:25:23Z")

</div>

When the window changes size, Defold recalculates the size and position of all GUI nodes.  
Is it possible to call this recalculation from within the program? Is there a function that can to be called from the native extension?

For example, such recalculation can be found in the safearea extension for iOS if you select a special mode there.  
Is there access to such a function without being linked to a platform?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [May 15, 2021, 7:13am UTC](https://forum.defold.com/t/recalculating-the-entire-gui-to-arbitrary-dimensions/68436/2 "2021-05-15T07:13:17Z")

</div>

> [@morgerion](#):
>
> Is it possible to call this recalculation from within the program?

No, there is currently no such API function. Why do you need it?
