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).
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.
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).
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).