# Changing root container mode property

**URL:** <https://forum.inductiveautomation.com/t/changing-root-container-mode-property/112979>\
**Category:** Ignition\
**Created:** [December 23, 2025, 9:54pm UTC](https://forum.inductiveautomation.com/t/changing-root-container-mode-property/112979 "2025-12-23T21:54:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pico\_Sankari](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Pico\_Sankari](https://forum.inductiveautomation.com/u/Pico_Sankari)\
**Post date:** [December 23, 2025, 9:54pm UTC](https://forum.inductiveautomation.com/t/changing-root-container-mode-property/112979/1 "2025-12-23T21:54:23Z")

</div>

I’m trying to allow the user to select if the root container in a view is in percent or fixed mode. I have this change script on a check box in the container:

```python
    if currentValue.value:
        self.parent.props.mode='percent'
    else:
        self.parent.props.mode='fixed'

```

In the designer, it changes the mode as expected. However, when I save this and try to use it in the browser, the check box has no effect on how things are displayed. Why is this? Is there a better way to let users control the mode?

---

<div class="post-metadata">

**Author:** ![tgarrison](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tgarrison/32/80965_2.png) [@tgarrison](https://forum.inductiveautomation.com/u/tgarrison)\
**Post date:** [December 24, 2025, 1:13pm UTC](https://forum.inductiveautomation.com/t/changing-root-container-mode-property/112979/2 "2025-12-24T13:13:51Z")

</div>

Believe that's one of the things that while it appears it is "settable" during runtime, it actually isn't. You'd have to duplicate the container and set one to percent, one to fixed, and swap between them via the user input.

---

<div class="post-metadata">

**Author:** ![Pico\_Sankari](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Pico\_Sankari](https://forum.inductiveautomation.com/u/Pico_Sankari)\
**Post date:** [December 24, 2025, 4:10pm UTC](https://forum.inductiveautomation.com/t/changing-root-container-mode-property/112979/3 "2025-12-24T16:10:26Z")

</div>

Ended up following this. One additional detail: the container holding both of the sub containers needs to be set to percent.

---

<div class="post-metadata">

**Author:** ![tgarrison](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tgarrison/32/80965_2.png) [@tgarrison](https://forum.inductiveautomation.com/u/tgarrison)\
**Post date:** [December 24, 2025, 4:22pm UTC](https://forum.inductiveautomation.com/t/changing-root-container-mode-property/112979/4 "2025-12-24T16:22:44Z")

</div>

If you're doing it for the overall view, and you want to switch between them because of screen size, you could do it automatically via a breakpoint container as your root container.
