Adobe Dreamweaver Forums



Last 10 THreads :         Objects "Framed" when moving layer (Last Post : VegasMirage@adobeforums.com - Replies : 2 - Views : 3 )           »          Creating images to look like original oil paintings? (Last Post : Ian_Courtney@adobeforums.com - Replies : 0 - Views : 1 )           »          Opening a file in navpane from toolbar (Last Post : ChrisRousset - Replies : 0 - Views : 1 )           »          Help importing PNG sequence (Last Post : []MULISH - Replies : 0 - Views : 1 )           »          Problems importing PNG sequence (Last Post : []MULISH - Replies : 0 - Views : 1 )           »          Flash CS4 grey Icons in the Tool Panels are hard to see (Last Post : rnfw - Replies : 0 - Views : 1 )           »          Strip EXIF camera data from PSD files? (Last Post : Russell_Proulx@adobeforums.com - Replies : 2 - Views : 3 )           »          CSH Calls for Merged CHM's (Last Post : TrentSnake - Replies : 0 - Views : 1 )           »          Image Replacement (Last Post : WhatNow - Replies : 0 - Views : 1 )           »          Embedding Flash SWF Skin in External Site (Last Post : QADesign - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:37 AM
New to AS3
 
Posts: n/a
Diggs:
Default Setting a Canvas Height to 'auto'

is there a way to set a canvas height back to "auto" when you change it? (or
maybe there is a better way to do this...)

I have a VBox that has canvases in it that have a checkbox inside.. once the
checkbox is checked and marked as "complete" it sets the height of the canvas
to 0 to make it hide and make everything appear to move up on the list. I have
an option to "show completed items" which I want to go through the canvases
again and set there height back to "auto"

Is there a way to do that? or a better way to accomplish this?

Thanks.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:37 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Setting a Canvas Height to 'auto'


"New to AS3" <webforumsuser@macromedia.com> wrote in message
news:gdpv3v$rie$1@forums.macromedia.com...
> is there a way to set a canvas height back to "auto" when you change it?
> (or
> maybe there is a better way to do this...)
>
> I have a VBox that has canvases in it that have a checkbox inside.. once
> the
> checkbox is checked and marked as "complete" it sets the height of the
> canvas
> to 0 to make it hide and make everything appear to move up on the list. I
> have
> an option to "show completed items" which I want to go through the
> canvases
> again and set there height back to "auto"


Why not just set the includeInLayout property on the canvases?


Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:37 AM
New to AS3
 
Posts: n/a
Diggs:
Default Re: Setting a Canvas Height to 'auto'

Booyah! thanks I figured there was an easier solution!
Reply With Quote


  #4 (permalink)  
Old 11-03-2008, 04:37 AM
New to AS3
 
Posts: n/a
Diggs:
Default Re: Setting a Canvas Height to 'auto'

OK I've started using this.. and for a while figured this was the perfect
answer.. but...

Most of the canvases are about 30 height.. but some are a bit bigger.. and
once they start setting the "includeInLayout" to false, you start seeing some
of the "larger" height's interior components visible..

why is that? I tried to do sometihng like:
<mxataGrid includeInLayout="{canvasObj01.includeInLayout}">

but it won't set that to false.

Sure there is some workaround to a glitch.. anyone know it?

Reply With Quote
  #5 (permalink)  
Old 11-03-2008, 04:37 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: Setting a Canvas Height to 'auto'


"New to AS3" <webforumsuser@macromedia.com> wrote in message
news:gdqfgs$kn5$1@forums.macromedia.com...
> OK I've started using this.. and for a while figured this was the perfect
> answer.. but...
>
> Most of the canvases are about 30 height.. but some are a bit bigger.. and
> once they start setting the "includeInLayout" to false, you start seeing
> some
> of the "larger" height's interior components visible..
>
> why is that? I tried to do sometihng like:
> <mxataGrid includeInLayout="{canvasObj01.includeInLayout}">
>
> but it won't set that to false.
>
> Sure there is some workaround to a glitch.. anyone know it?


Try setting both the includeInLayout and visible properties to false.


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk