# Form resizing dynamically

**URL:** https://forum.servoy.com/t/form-resizing-dynamically/18597
**Category:** Classic Servoy
**Created:** [October 16, 2015, 12:26pm UTC](https://forum.servoy.com/t/form-resizing-dynamically/18597 "2015-10-16T12:26:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![christof.brenke](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@christof.brenke](https://forum.servoy.com/u/christof.brenke)
#### Post date: [October 16, 2015, 12:26pm UTC](https://forum.servoy.com/t/form-resizing-dynamically/18597/1 "2015-10-16T12:26:49Z")

</div>

Hi,

following Scenario:

I filled an HTML\_AREA with thumbnails of images. When clicking one of the thumbnails a new form with an HTML\_AREA opens up for a detailled view of the Image.  
In order to resize the HTML\_AREA depending on the Size of the Image i have two VAR with Width and Height.  
Resizing the HTML\_AREA dynamically with “elements” is working fine. Is there anything for the Form itself like “setSize” or something?

Thanks.

Regards,  
Christof

---

<div class="post-metadata">

### Author: ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)
#### Post date: [October 16, 2015, 1:57pm UTC](https://forum.servoy.com/t/form-resizing-dynamically/18597/2 "2015-10-16T13:57:30Z")

</div>

Hi Christof,

you can anchor the html\_area on the form, you can just open a form in dialog with the correct dimensions.  
This way you don’t have to set any of the dimensions on either the html\_area/form.

Hope this helps.
