How to Change App Width at Runtime? - Forum

Forum Navigation
You need to log in to create posts and topics.

How to Change App Width at Runtime?

Hi everyone,

I'm trying to adjust the width of my app dynamically at runtime. Specifically, I want to change the width based on user interactions or other conditions during the app's operation. Could anyone provide guidance or examples on how to achieve this?

Uploaded files:
  • You need to login to have access to uploads.

@asmat that's a bit strange.
App width and height are set in two special CSS classes.

  • CSS classes automatically added to <body> and every page:

.neobody
.neopage

So you can rewrite them by doing this:

  1. Add a not visible Container to your Master Page
  2. Include a code similar to this one into the Container HTML code:
<style>
.neobody,.neopage{
   width:[appWidth]px!important;
}
</style>

Whenever you change the [appWidth] value, the App width should change accordingly.

asmat has reacted to this post.
asmat

Thank you very much, Mr. Luis.