# getFormWidth?

**URL:** <https://forum.servoy.com/t/getformwidth/12177>\
**Category:** Classic Servoy\
**Created:** [May 11, 2010, 10:17pm UTC](https://forum.servoy.com/t/getformwidth/12177 "2010-05-11T22:17:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 11, 2010, 10:17pm UTC](https://forum.servoy.com/t/getformwidth/12177/1 "2010-05-11T22:17:52Z")

</div>

Hi there,

I have a tabpanel and that tabpanel has anchors, so it’s width can be resized.  
Is there somewhere a function, or piece of code, to determ, how wide the form is, in that tabpanel, after a resize??

(tabpanel is not fullscreen, and we also do have/use a navigator…)

this code:

```auto
application.output(solutionModel.getForm(event.getFormName()).width)

```

always returns me the design width, not the real width, after resize.

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [May 11, 2010, 10:44pm UTC](https://forum.servoy.com/t/getformwidth/12177/2 "2010-05-11T22:44:48Z")

</div>

Hi Harjo,

Yeah, it’s not always clear when you get blue-print values or real-time values.  
Anyway, I tend to use controller.getFormWidth() to get the current form width of a form, even when using the SolutionModel.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [May 11, 2010, 10:51pm UTC](https://forum.servoy.com/t/getformwidth/12177/3 "2010-05-11T22:51:47Z")

</div>

ah yes, thanks… I was thinking to difficult ![;-)]( "Wink")

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [May 12, 2010, 7:18am UTC](https://forum.servoy.com/t/getformwidth/12177/4 "2010-05-12T07:18:35Z")

</div>

> Yeah, it’s not always clear when you get blue-print values or real-time values

Which bit is not clear exactly?  
SolutionModel: All about the blueprint, never the runtime situation  
Everything else: Runtime situation

So, actual width of a form in a running client: NOT the solutionModel  
Designed (blueprint) width of the form: solutionModel

Paul
