# GUI adjust questions - fit within available space? (more-or-less solved)

**URL:** <https://forum.defold.com/t/gui-adjust-questions-fit-within-available-space-more-or-less-solved/68660>\
**Category:** Questions\
**Created:** [June 19, 2021, 2:31pm UTC](https://forum.defold.com/t/gui-adjust-questions-fit-within-available-space-more-or-less-solved/68660 "2021-06-19T14:31:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [June 19, 2021, 3:17pm UTC](https://forum.defold.com/t/gui-adjust-questions-fit-within-available-space-more-or-less-solved/68660/4 "2021-06-19T15:17:55Z")

</div>

> [@ross.grams](#):
>
> Is there a way to have a menu bar that stretches to fit the width of the window, but doesn’t scale vertically?

Can probably be done by manually scaling width and then setting height to inverse GUI scale?

> [@How to prevent automatic GUI scaling?](https://forum.defold.com/t/how-to-prevent-automatic-gui-scaling/5451/2):
>
> I ran into a similar issue. +1 on a “None” option. The way I solved it is by inferring the scale of the gui in the render script, sharing it globally, and then applying the inverse of that scale to every gui element in the gui script. -- in .render\_script update -- share gui scale globally so that we can reverse it in our gui script (this blackboard is my own thing, you can use a global table) -- this guess at the gui scale assumes that "fit" adjust mode is used on all elements whose scale you …

---

_[View the full topic](https://forum.defold.com/t/gui-adjust-questions-fit-within-available-space-more-or-less-solved/68660)._
