# Web app to adjust to mobile etc screen size

**URL:** <https://forum.xojo.com/t/web-app-to-adjust-to-mobile-etc-screen-size/88880>\
**Category:** Getting Started\
**Created:** [September 14, 2026, 2:38am UTC](https://forum.xojo.com/t/web-app-to-adjust-to-mobile-etc-screen-size/88880 "2026-09-14T02:38:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![noel\_tanti](https://forum.xojo.com/letter_avatar_proxy/v4/letter/n/eada6e/32.png) [@noel\_tanti](https://forum.xojo.com/u/noel_tanti)\
**Post date:** [September 14, 2026, 2:38am UTC](https://forum.xojo.com/t/web-app-to-adjust-to-mobile-etc-screen-size/88880/1 "2026-09-14T02:38:32Z")

</div>

I need to adjust the screen size and consequently the control in it, to the screen size. Web apps are run n many different sized devices and are breaking my layout or at most make it look disorganized is the screen size changes.

Any help appreciated

---

<div class="post-metadata">

**Author:** ![Patrick\_Salo](https://forum.xojo.com/user_avatar/forum.xojo.com/patrick_salo/32/514_2.png) [@Patrick\_Salo](https://forum.xojo.com/u/Patrick_Salo)\
**Post date:** [September 14, 2026, 3:02am UTC](https://forum.xojo.com/t/web-app-to-adjust-to-mobile-etc-screen-size/88880/2 "2026-09-14T03:02:33Z")

</div>

Depending upon the type of control and look/feel you’re looking for, the Locking settings for the control might be what you need. For more dynamic layout changes, the WebPage.Resized event will be your friend here.

But I say all of this with a huge caveat. There’s been some pretty severe web layout issues in Xojo that have been presented over the last few releases. Ricardo is aware and working on fixing things so hopefully we’ll see some bug fixes soon.

It’s been so long now and I’m going off purely old memories so take this with a grain of salt. Expect a ton of guess and check when doing dynamic resizing. Sometimes the seemingly impossible and most non-sensical algorithms actually work. Other times you’ll have to resort to hard coding in magic numbers to get the layout the way you want it.

It’s all doable, with a bit of work and hair pulling. Be prepared for Session.ClientWidth to be different in the Opening versus Shown events. I’ve found putting things in a WebRectangle (aka poor man’s GroupBox) does help quite a bit as the controls within tend to size/place much better and then all you have to do is wrangle the WebRectangle into doing what you want it to do versus a zillion controls.

Or if you don’t need any more recent features and bug fixes, simply roll back to 2025r2.1, as all these caveats go away and you’ll save yourself a ton of time.

---

<div class="post-metadata">

**Author:** ![Hector\_Marroquin](https://forum.xojo.com/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@Hector\_Marroquin](https://forum.xojo.com/u/Hector_Marroquin)\
**Post date:** [September 14, 2026, 5:00am UTC](https://forum.xojo.com/t/web-app-to-adjust-to-mobile-etc-screen-size/88880/3 "2026-09-14T05:00:33Z")

</div>

My solution was to write sepparate pages for mobile that share the same logic as the desktop pages
