Re: [flexcoders] Shouldn't this VBox have a scrollbar?
On 5/6/07, Tom Bray [EMAIL PROTECTED] wrote: Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar: (Former Adobe guy who worked on this stuff...) Set minWidth=0 on the VBox and now it'll be 100% of the outer Canvas. See my other post (a few days ago, in response to Ian Skinner) for an explanation. I'll try to explain this in more detail in a blog post.
Re: [flexcoders] Shouldn't this VBox have a scrollbar?
Perfect. Thanks! On May 6, 2007, at 5:08 AM, Manish Jethani wrote: On 5/6/07, Tom Bray [EMAIL PROTECTED] wrote: Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar: (Former Adobe guy who worked on this stuff...) Set minWidth=0 on the VBox and now it'll be 100% of the outer Canvas. See my other post (a few days ago, in response to Ian Skinner) for an explanation. I'll try to explain this in more detail in a blog post.
[flexcoders] Shouldn't this VBox have a scrollbar?
Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas width=500 height=300 horizontalScrollPolicy=off verticalScrollPolicy=off mx:VBox id=badVBox width=100% height=100% mx:Canvas width=100% height=200 backgroundColor=green/ mx:Canvas width=100% height=200 backgroundColor=green/ mx:Canvas width=100% height=200 backgroundColor=green/ /mx:VBox /mx:Canvas mx:Button y=400 label=debug click=debug()/ mx:Script ![CDATA[ public function debug():void { var v:VBox = badVBox; } ]] /mx:Script /mx:Application
Re: [flexcoders] Shouldn't this VBox have a scrollbar?
The value of height=200 is making this happen mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ - Original Message From: Tom Bray [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, May 5, 2007 5:36:08 PM Subject: [flexcoders] Shouldn't this VBox have a scrollbar? Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar: ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute horizontalScrollPol icy=off verticalScrollPolic y=off mx:Canvas width=500 height=300 horizontalScrollPol icy=off verticalScrollPolic y=off mx:VBox id=badVBox width=100% height=100% mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ /mx:VBox /mx:Canvas mx:Button y=400 label=debug click=debug( )/ mx:Script ![CDATA[ public function debug():void { var v:VBox = badVBox; } ]] /mx:Script /mx:Application __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: [flexcoders] Shouldn't this VBox have a scrollbar?
Hi Jas, I expect the measuredHeight to be 612, which it is. The problem is that I also expect the VBox to respect the height of its parent canvas (300) and thus display a vertical scrollbar. Thanks, Tom On May 5, 2007, at 3:17 PM, Jas Kaur wrote: The value of height=200 is making this happen mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ - Original Message From: Tom Bray [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, May 5, 2007 5:36:08 PM Subject: [flexcoders] Shouldn't this VBox have a scrollbar? Shouldn't the height of the VBox below end up being 300? Shouldn't height=100% make it fill up the area allotted to it by it's parent? Instead it ends up having a height of 612 and no scrollbar: ?xml version=1.0 encoding=utf- 8? mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml layout=absolute horizontalScrollPol icy=off verticalScrollPolic y=off mx:Canvas width=500 height=300 horizontalScrollPol icy=off verticalScrollPolic y=off mx:VBox id=badVBox width=100% height=100% mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ mx:Canvas width=100% height=200 backgroundColor= green/ /mx:VBox /mx:Canvas mx:Button y=400 label=debug click=debug( )/ mx:Script ![CDATA[ public function debug():void { var v:VBox = badVBox; } ]] /mx:Script /mx:Application The best gets better. See why everyone is raving about the All-new Yahoo! Mail.