# Max and Min values in a Split Container

**URL:** <https://forum.inductiveautomation.com/t/max-and-min-values-in-a-split-container/112096>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 11, 2025, 2:17pm UTC](https://forum.inductiveautomation.com/t/max-and-min-values-in-a-split-container/112096 "2025-11-11T14:17:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielps1818](https://avatars.discourse-cdn.com/v4/letter/d/ecae2f/32.png) [@danielps1818](https://forum.inductiveautomation.com/u/danielps1818)\
**Post date:** [November 11, 2025, 2:17pm UTC](https://forum.inductiveautomation.com/t/max-and-min-values-in-a-split-container/112096/1 "2025-11-11T14:17:07Z")

</div>

Is there a way of setting a minimun or maximum value in a `SplitContainer`?

I have a split container but if you move it too much to the right the data gets all messy. I wanna set a minimun value so the data doesn't get messy and the user movement is limited.

Any help is appreciated.

Thx!

---

<div class="post-metadata">

**Author:** ![vtran](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vtran](https://forum.inductiveautomation.com/u/vtran)\
**Post date:** [November 11, 2025, 2:32pm UTC](https://forum.inductiveautomation.com/t/max-and-min-values-in-a-split-container/112096/2 "2025-11-11T14:32:39Z")

</div>

Don’t think there are those are built in. But I guess you can add a value change script on the `props.split.position` parameter to check if the current value is out of bound to clamp it.

Something like this

```python
def valueChanged(self, previousValue, currentValue, origin, missedEvents):
	if currentValue and currentValue.value:
		if currentValue.value > 250:
			self.props.split.position = 250
		elif currentValue.value < 100:
			self.props.split.position = 100

```

Replace 100 and 250 with your min and max, probably can make those as custom parameters if you want to be able to change them easily later on.

One caveat is that `props.split.position` also accept % value like `50%`, so you might want to add additional scripting to handle those cases
