Hi Sree,
 
Great I feel this is the only way.........


On Fri, Jan 13, 2006 at 11:06 AM, Sreejith Unnikrishnan wrote:

Try setting minWidth="0" and minHeight="0" to the VBox

Sree

superabe superabe wrote: Update on this, setting fixed widths and heights on the parent VBox resolved the issue.
That will do fine for now :)

- superabe


On 1/12/06, superabe superabe < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: No luck, same behaviour. :(
Works for Canvas, does not work for VBox
- superabe 

On 1/12/06, Paul BH < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: what happens if you call super.createChildren() at the beginning of the createChildren method?

On 1/12/06, superabe superabe < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote:
Hello list,
This sounds like a really basic thing so I can't believe this is a bug, so probably am doing something wrong.
I have a custom AS container(extends off VBox) in which I create a large number of child controls by overriding the createChildren method.
The component is used in Main.mxml file inside a VBox which is set to 100% height and width like so (pseudo):
<application width=980 height=695 margin=10>
  <vbox width=100% height=100%>
    <myContainer/>
  </vbox>
</application
The issue is when the scrollbars show up on the Application, rather than on the VBox where I would expect it to  !
If I replace the parent vbox with a canvas scrollbars show up around the canvas as it should
My component code is:
MyContainer.as
class _test.MyContainer extends VBox{
  function MyContainer(){
  }

 public function createChildren():Void{
   for(var i:Number=0;i<100;i++){
     this.createChild(Button,undefined,{label:"a_"+ i});
   }
 }
}
Anybody faced this before or know what I am doing wrong?
TIA
- superabe


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



SPONSORED LINKS
Web site design development <http://groups.yahoo.com/gads?t=ms&amp;k=Web+site+design+development&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=L-4QTvxB_quFDtMyhrQaHQ> Computer software development <http://groups.yahoo.com/gads?t=ms&amp;k=Computer+software+development&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=lvQjSRfQDfWudJSe1lLjHw> Software design and development <http://groups.yahoo.com/gads?t=ms&amp;k=Software+design+and+development&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=1pMBCdo3DsJbuU9AEmO1oQ> Macromedia flex <http://groups.yahoo.com/gads?t=ms&amp;k=Macromedia+flex&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=OO6nPIrz7_EpZI36cYzBjw> Software development best practice <http://groups.yahoo.com/gads?t=ms&amp;k=Software+development+best+practice&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=f89quyyulIDsnABLD6IXIw>
___________________________________

YAHOO! GROUPS LINKS

   •  Visit your group " flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web.
   •  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
   •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .


___________________________________




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



SPONSORED LINKS
Web site design development <http://groups.yahoo.com/gads?t=ms&amp;k=Web+site+design+development&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=L-4QTvxB_quFDtMyhrQaHQ> Computer software development <http://groups.yahoo.com/gads?t=ms&amp;k=Computer+software+development&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=lvQjSRfQDfWudJSe1lLjHw> Software design and development <http://groups.yahoo.com/gads?t=ms&amp;k=Software+design+and+development&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=1pMBCdo3DsJbuU9AEmO1oQ> Macromedia flex <http://groups.yahoo.com/gads?t=ms&amp;k=Macromedia+flex&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=OO6nPIrz7_EpZI36cYzBjw> Software development best practice <http://groups.yahoo.com/gads?t=ms&amp;k=Software+development+best+practice&amp;w1=Web+site+design+development&amp;w2=Computer+software+development&amp;w3=Software+design+and+development&amp;w4=Macromedia+flex&amp;w5=Software+development+best+practice&amp;c=5&amp;s=166&amp;.sig=f89quyyulIDsnABLD6IXIw>
___________________________________

YAHOO! GROUPS LINKS

   •  Visit your group " flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web.
   •  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
   •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .


___________________________________





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com


___________________________________

YAHOO! GROUPS LINKS

   •  Visit your group " flexcoders <http://groups.yahoo.com/group/flexcoders> " on the web.
   •  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
   •  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> .

___________________________________



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to