Not able to reduce height even i reduce the component height from owner height.

Posted on 2011-03-17
Last Modified: 2012-05-11
Hi expert,

Could you please let me know how i can reduce height when i close TextArea in my code?
Here is the issue:
when i expand CollapsableHeader-->if i close Command Description(TextArea)-->well owner height is decreasing(screen shot 3)-->but when i collapse and expand again CollapsableHeader-->i see more empty space(more height) added in the bottom(screen shot 4).

In screen shot 4, Could you plse let me know, how i can avoid more height in the bottom even if i close CommandDescription.

onClick of CollapsableHeader i am calling server. so in onResult(),even of i add these statements, height is not reducing

                                          this.height += cmdSuggestionHt;
                                          owner.height += cmdSuggestionHt;
                                          this.height -= cmdSuggestionHt
                                          owner.height -= cmdSuggestionHt

Please any suggestion?

Question by:Alpita
  • 2
  • 2

Author Comment

ID: 35162647
Hi Experts,

This question belongs to Adobeflex Zone.

LVL 29

Expert Comment

ID: 35163163
use maxHeight = 0; when you collapse and maxHeight = NaN for expand.
Do not modified a height parameter.
LVL 29

Accepted Solution

dgofman earned 500 total points
ID: 35169121
Your main problem is outisde CommandHelpComp component. You need just reduce height of parent holder:

<mx:VBox id="cmdbox5" resizeEffect="{resize}" width="700" height="500" backgroundColor="0xEEF9F8" horizontalScrollPolicy="off" verticalScrollPolicy="off">
    <comp:CommandHelpComp id="cmdHelpComp" imagevisibleFlag="false"/>

Also do not reset height of textfield

      tA1.setStyle("focusAlpha", 0)
      arrow1.toolTip = "";
                     vSug.visible = true;
      vSug.includeInLayout = true;
      owner.height += cmdSuggestionHt;
} else
      arrow1.toolTip = "Click to write suggestion"
                      vSug.visible = false
      owner.height -= cmdSuggestionHt;

Author Closing Comment

ID: 35173900
Thanks . It is working fine now.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
using if condition without JSTL 2 111
maven j2ee examles 2 60
print map entry 34 72
servlet example 17 51
First things first - Preparation We need all the part for this install and it's much nicer to have them all on hand when you need them so here's what's required. Download Eclipse 3.5 32 bit (I like the Classic flavour) from here. (http://www.e…
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit If you want to manage em…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question