# 'Manual' sizing of anchored fields

**URL:** https://forum.servoy.com/t/manual-sizing-of-anchored-fields/17156
**Category:** Classic Servoy
**Created:** [April 2, 2013, 7:02pm UTC](https://forum.servoy.com/t/manual-sizing-of-anchored-fields/17156 "2013-04-02T19:02:11Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ylockson](https://avatars.discourse-cdn.com/v4/letter/y/b487fb/32.png) [@ylockson](https://forum.servoy.com/u/ylockson)
#### Post date: [April 2, 2013, 7:02pm UTC](https://forum.servoy.com/t/manual-sizing-of-anchored-fields/17156/1 "2013-04-02T19:02:11Z")

</div>

It would be nice if maximum limits could be defined for fields that are right & left or/and top & bottom anchored.

For example, in a tableview form, when several fields are left & right anchored, Servoy automatically expands them in a way that is not always predictable. If a form is designed to say fit into at least a 800x600 screen, columns sometimes need to be made smaller for all of them to fit. Then, if a monitor wide enough were used, width & height limitations defined would make the field containers become sized exactly as wished (leaving blanks spaces at right and bottom if not needed - instead of filling up). If the monitor though larger than 800x600 but still not big enough, Servoy could simply re-allocate any extra space proportionally.

---

<div class="post-metadata">

### Author: ![Joas](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/joas/32/5095_2.png) [@Joas](https://forum.servoy.com/u/Joas)
#### Post date: [April 3, 2013, 1:30pm UTC](https://forum.servoy.com/t/manual-sizing-of-anchored-fields/17156/2 "2013-04-03T13:30:09Z")

</div>

You can use the onResize event of your form and the .setSize() and .setLocation() functions on your elements to do this.
