# Accordion setSize problem

**URL:** <https://forum.kirupa.com/t/accordion-setsize-problem/202877>\
**Category:** flash\
**Created:** [October 5, 2006, 2:46pm UTC](https://forum.kirupa.com/t/accordion-setsize-problem/202877 "2006-10-05T14:46:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![W84me](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/w84me/32/1257_2.png) [@W84me](https://forum.kirupa.com/u/W84me)\
**Post date:** [October 5, 2006, 2:46pm UTC](https://forum.kirupa.com/t/accordion-setsize-problem/202877/1 "2006-10-05T14:46:27Z")

</div>

Here is the deal

I have an accordion component on the stage and i add with actionscript srollpanes as segments. I use the following actionscript to adjust the dimensions of the scrollpanes to the accordion

```auto
currentStuff.createSegment("ScrollPane","curDocsPane","&#914;&#953;&#946;&#955;&#943;&#945;,&#928;&#964;&#965;&#967;&#953;&#945;&#954;&#941;&#962; &#917;&#961;&#947;&#945;&#963;&#943;&#949;&#962;, &#917;&#961;&#947;&#945;&#963;&#943;&#949;&#962; &#924;&#945;&#952;&#951;&#956;&#940;&#964;&#969;&#957;");
currentStuff.createSegment("ScrollPane","curSongsPane","&#916;&#951;&#956;&#959;&#964;&#953;&#954;&#940; &#932;&#961;&#945;&#947;&#959;&#973;&#948;&#953;&#945;");
currentStuff.createSegment("ScrollPane","curVideosPane","&#927;&#960;&#964;&#953;&#954;&#959;&#945;&#954;&#959;&#965;&#963;&#964;&#953;&#954;&#972; &#933;&#955;&#953;&#954;&#972;");
var currentStuffSize:Number = currentStuff._height - (21.5*currentStuff.numChildren);
currentStuff.curDocsPane.setSize(currentStuff._width,currentStuffSize);
currentStuff.curSongsPane.setSize(currentStuff._width,currentStuffSize);
currentStuff.curVideosPane.setSize(currentStuff._width,currentStuffSize);
trace(currentStuff._width);

```

My accordion is 300px in width but when i trace the width its says 100…:crying:
