# Form Inheritance and Resizing

**URL:** <https://forum.servoy.com/t/form-inheritance-and-resizing/13517>\
**Category:** Classic Servoy\
**Created:** [February 2, 2011, 6:29pm UTC](https://forum.servoy.com/t/form-inheritance-and-resizing/13517 "2011-02-02T18:29:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wiseguy](https://avatars.discourse-cdn.com/v4/letter/w/bbce88/32.png) [@wiseguy](https://forum.servoy.com/u/wiseguy)\
**Post date:** [February 2, 2011, 6:29pm UTC](https://forum.servoy.com/t/form-inheritance-and-resizing/13517/1 "2011-02-02T18:29:48Z")

</div>

I am attempting to use form inheritance in Servoy 5.2.4, but I am not satisfied with how it handles form resizing. Can anyone provide any pointers to workaround these issues?

- I’d like to be able to set the size of the base form very small and still use it for larger child forms, but the child forms end up inheriting the size of the base form and everything outside the bounds of the base form is hidden.
- If I set the size of the base form large enough to accomodate the child form, but actually larger than the child form (perhaps to support other even larger child forms), then elements on the child form don’t resize nicely to fill the whole form (because the form uses the base height/width, but the elements are anchored to the child height/width).

---

<div class="post-metadata">

**Author:** ![jbader](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jbader](https://forum.servoy.com/u/jbader)\
**Post date:** [February 3, 2011, 1:30am UTC](https://forum.servoy.com/t/form-inheritance-and-resizing/13517/2 "2011-02-03T01:30:19Z")

</div>

If by size of the form you mean the height of a part - like the body - then remove that part from the parent form. You’ll still be able to add it to the child form but the parts height won’t be constrained.

Form width can be adjusted in my experience Independent of the parent form’s width.

---

<div class="post-metadata">

**Author:** ![wiseguy](https://avatars.discourse-cdn.com/v4/letter/w/bbce88/32.png) [@wiseguy](https://forum.servoy.com/u/wiseguy)\
**Post date:** [February 3, 2011, 5:54pm UTC](https://forum.servoy.com/t/form-inheritance-and-resizing/13517/3 "2011-02-03T17:54:33Z")

</div>

Thanks jbader. That is helpful. And, it seems that as long as the width of the parent form is smaller than the child form’s width then things work as desired (child form width matches setting in designer).

It would be nice if inheritance was such that the form width and section height of the child overrode the parent unless you set it to default (similar to how some other properties are handled).

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [February 3, 2011, 9:48pm UTC](https://forum.servoy.com/t/form-inheritance-and-resizing/13517/4 "2011-02-03T21:48:11Z")

</div>

There will be such override of forms properties in Servoy 6

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [February 7, 2011, 9:53am UTC](https://forum.servoy.com/t/form-inheritance-and-resizing/13517/5 "2011-02-07T09:53:51Z")

</div>

> wiseguy:  
> It would be nice if inheritance was such that the form width and section height of the child overrode the parent unless you set it to default (similar to how some other properties are handled).

That is the way it is done in Servoy 6.

Rob
