Why is the panel growing?

I've been away from Flex for several months and have forgotten why this happens.
A vbox with a panel with a hbox with a text field are all set to 100% width.  But they are growing to 100% height as well.  The text takes about 3-4 lines with 10 inches of blank space below it.  I thought that if you didn't put in a height it would take the height from the contents, not the maximum size of the page.
Help?

Thanks for looking at it.  I had found the extra ">" and the horizonalAlign while trying to change the HBox to a canvas.
The Autosize text was put in because Flex doesn't display the whole text (textarea) by default and a simple text doesn't allow wordwrapping.  It brings in 2 lines and adds a scroll bar.  I don't know the size it will be at run time as the user can change the language (Spanish takes a lot more words) and font size.
I didn't write the auto resizing component, but here it is incase you are interested:
<?xml version="1.0" encoding="utf-8"?>
<mx:TextArea xmlns:mx="http://www.adobe.com/2006/mxml">
    <mx:Script>
        <![CDATA[
            // auto resize setting
            private var _autoResizable:Boolean = false;
            // getter
            [Bindable(event="changeAutoResize")]
            public function get autoResize():Boolean
                return _autoResizable;
            // setter
            public function set autoResize(b:Boolean):void
                _autoResizable = b;
                // if the text field component is created
                // and is auto resizable
                // we call the resize method
                if (this.mx_internal::getTextField() != null &&
                    _autoResizable == true)
                    resizeTextArea();
                // dispatch event to make the autoResize
                // property bindable
                dispatchEvent(new Event("changeAutoResize"));
            // setter override
            override public function set text(value:String):void
                // calling super method
                super.text = value;
                // if is auto resizable we call
                // the resize method
                if (_autoResizable)
                    resizeTextArea();
            // resize function for the text area
            private function resizeTextArea():void
                // initial height value
                // if set to 0 scroll bars will
                // appear to the resized text area
                var totalHeight:uint = 10;
                // validating the object
                this.validateNow();
                // find the total number of text lines
                // in the text area
                var noOfLines:int = this.mx_internal::getTextField().numLines;
                // iterating through all lines of
                // text in the text area
                for (var i:int = 0; i < noOfLines; i++)
                    // getting the height of one text line
                    var textLineHeight:int =
                    this.mx_internal::getTextField().getLineMetrics(i).height;
                    // adding the height to the total height
                    totalHeight += textLineHeight;
                // setting the new calculated height
                this.height = totalHeight;
        ]]>
    </mx:Script>
</mx:TextArea>

Similar Messages

  • The CC control panel use to show my 4 applications CC, CS6, LR5 and Bridge, now LR5 is no longer showing up. I pay for the photographer bundle, which includes LR5 and CC, why has it been dropped off? Is there any way to bring it back in the panel, because

    The CC control panel use to show my 4 applications CC, CS6, LR5 and Bridge, now LR5 is no longer showing up. I pay for the photographer bundle, which includes LR5 and CC, why has it been dropped off? Is there any way to bring it back in the panel, because in the listed applications which can be added below it is not listed.  Thanks!

    If you're a paying Creative Cloud member, you may not see Lightroom in the Creative Cloud if your computer doesn't meet the minimum system requirements. Check to make sure that your system meets the minimum requirements for the latest release of Lightroom.
    If you're using a trial version of Creative Cloud, the Lightroom trial is not available through Creative Cloud. It is, however, available as a stand-alone trial. See Install Lightroom trial | Creative Cloud membership. 
    Please refer to : Lightroom and Creative Cloud FAQ
    Regards
    Rajshree

  • Why is the Insert Panel Missing from Dw CS6 Build 12 v 5861?

    Why is the Insert Panel Missing from Dw CS6 Build 12 v 5861?

    If Nancy's advice doesn't make it pop up as a window, you may have it set as a tool bar, in which case, hitting Ctrl+F2 will make the tool bar appear/disappear.
    To turn it back into a floating panel, click and drag the dashed line on the far left of the Insert tool bar and pull it away from the top. You can leave it as free floating or drag it to another edge until it highlights the edge and drop it to dock it to whichever side of the screen you prefer.

  • Why is the download panel in Japanese?

    Windows 7 Pro x64 (English version), Waterfox 13, as well as IE9.
    Tried to download Digital Editions today in order to reproduce a problem someone else was having.
    went to http://www.adobe.com/products/digitaleditions/
    click on Download now
    click on インストール
    click on インストール again
    click on はい
    now this panel opens
    Now I really don't know how to continue; my Japanese is not good enough.
    Why does the installation have to be in Japanese?
    How can I change it to English?
    P.S. and an additional question: if I continue the installation here with the default values, will the installed product UI also be in Japanese?

    Pat Willener wrote:
    if I continue the installation here with the default values, will the installed product UI also be in Japanese?
    I just completed the installation; to answer my own question:

  • Why is my panel's preferred size changing as I resize the window?

    I have a JEditorPane inside a JPanel, which is wrapped in a JScrollPane. The JEditorPane contains a wide image and I expect to see horizontal scrollbars if the viewport is smaller than the minimum size needed to display the image.
    When my panel is displayed for the first time and the viewport size is smaller than the image, the horizontal scrollbars appear and the size of the scrollable area is set to the width of the image. This is the expected behaviour. When I resize the panel so that its is wider than the image and the scrollbars are no longer needed, the scrollbars disappear. However, when I shrink the panel back, the scrollbars appear at the correct "time" (when the edge of the image is reached), but the scrollable area is too wide, similar to the size I had stretched the panel out to.
    I am printing out the preferred size that the panel is returning (which will be used to set the scrollable area), and it seems to keep changing. The preferred size seems to grow with the panel's actual size, but it does not shrink back when I make the panel smaller.
    Anyone has any idea on what might be happening?

    Welcome to the Sun forums.
    >
    Anyone has any idea on what might be happening?>It probably has to do with the Java code used. Can you prepare an SSCCE that shows the behaviour?

  • When exporting from Photos, the panel for naming the file no longer shows up. Why and how do I change so I can name the file what I want?

    When exporting from Photos, the panel for naming the file no longer shows up. Why and how do I change so I can name the file what I want?

    You don't need to maintain all versions of the upgrade chain, but many of us do in case we need to work on a legacy file. If you want to rmove a version, though, ti should be done BEFORE installing the later one. Just reinstall CS5 and things should get back to normal.

  • Why did the contents of my states panel disappear?

    Why did the content of my States Panel disappear?

    Hello!
    I can recommend you do the following:
    1/ Quit Mail completely via the Mail-menu
    2/ Open the Finder and find the go-menu near the top left corner of your computer display (not the Finder-window) Choose go to folder.
    Copy-paste the following line into the field that appears, including the ~ :
    ~/library/mail/v2/maildata/
    3/ Move all files that start with "envelope" and "ExternalUpdate" to the trash. Don't empty the trash in case we need to restore these files (which is not likely, but still)
    4/ Restart OS X. Open Mail. Now it will re-import your existing mail. Is your issue solved after this?

  • Why does the iCloud Control Panel say "Install Outlook to use Mail, Contacts, and Calendars?"

    I've just successfully installed the iCloud Control Panel on my PC (runs with Vista). Why does the iCloud Control Panel say "Install Outlook to use Mail, Contacts, and Calendars?" The Bookmarks (with Safari) and Photo Stream options are active, but the Mail (with Outlook), Contacts (with Outlook),and Calendars and Tasks (with Outlook) are not. I'm using Office Outlook 2007. I used to be able to synch my iPhone with my PC's Outlook through iTunes without any problems. Any help would be appreciated.

    I meant to say when in the control panel!

  • Why is the text in the panels so small?

    I am new to Indesign. In fact I am evalutating for use at my company.
    The panels are pretty much unusalbe, the text is way to small.
    It looks like it is about a 6pt font.
    Please someone tell me there is a way to change this.

    I too am evaluating indesign for use in a Product Design group for a major engineering software manufacturer.   Sometimes in software design we have to make concessions that no one likes in order to achieve our goals.  With our products we usually address any concessions in a follow up release.  I hope that Adobe has been forced into this situation and has not willingly chosen to forgo rudimentary functionality. From what I have observed with indesign CS4 I am unimpressed.  Here are a couple of my observations.
    1.     As stated the UI is missing basic user controls like the ability to change the font size.
    2.     Vertically docking toolbars on the side of the screen is limited to a few bars.  Any additional toolbars are forced into a side-by-side configuration.  This creates a dead space below the toolbars where screen real estate is wasted. Not a big deal just unprofessional.
    3.     General image display quality is horrible!  I have set View>Display Performance>High Quality Display and it does not matter if I embed or link images; does not matter if I use jpg, gif or png. The presentation is always ugly.  The gif looks a little better than the others when viewing the document with indesign, however, an exported pdf has degraded quality with gif. 
    4.     Performance.  I am running on two rather beefy machines, details below, and with twenty page documents indesign is sluggish and unresponsive at times.  This is not associated to embeded images as it occurs with or wtihout attached images.  I am fearful of putting indesign to task with larger projects.
    5.     Selection methods are downright cumbersome.  I have taken the time to learn some of the subtitles with the selection tools. For a rudimentary function this completely fails the intuitive test. I am not an indesign expert, but I shouldn't have to be either.  Since software is my business I tend to pick it up quickly and I think I know my way around indesign pretty well; I find the selection tools to be awkward at best.     
    I use two computers regularly and experience all the mentioned issues on both computers. 
    #1 Lenovo laptop T60p, 15" 1680x1050 ATI Mobility FireGL V5250 256Mb, 2.7mhz, 3Gb RAM.  I often connect this to a 21" 1600x1200 Viewsonic monitor.
    #2 HP Workstation 22" CRT 1920x1080 running an nVidia card 256Mb, 3mhz 4Gb RAM. 
    On the positive side I am impressed with the auto alignment features in CS4.  (if these existed in CS3 I didn't encounter them in the short time I used CS3.)  However, there are numerous basic features that are sorely lacking attention that in my opinion should have been addressed first.  I would ask the indesign product managers to consider shoring up the rudimentary features of indesign before adding new features.

  • Why are the tear off tool panels so much larger in CS6?

    Am I missing something? I typically tear off the tool panels for quick access. It appears the CS6 interface and made them much larger and they no longer neatly tuck into the top of my screen.
    What is the funtion of the small dashed line at the top of each panel? It just seems to make the panel needlessly larger.
    Ok, I see they are "handles" for docking the panels. I'd rather have the smaller panels!
    Thanks,
    Ray

    What are you editing and does it match your sequence... how many hard drives... is your video display adapter up to date?
    More information needed for someone to help... click these links and provided the requested information
    -http://forums.adobe.com/message/4200840
    -http://forums.adobe.com/thread/416679

  • Why is the Output Panel in Bridge blank?

    When I select the Output Workspace in Bridge, the panel at the right is blank - no buttons, fields, or anything other than a monotonous dark gray surface. When I select the Output button and the Output to Web or PDF option, nothing happens.

    In edit/preferences/start up scripts do you have check marks for eveything?

  • Why does my Panel not update with the new picture?

    Hi!
    I call the folowing panel from my main Window where on certain events I want to get the panel to display a different image. The problem is that the initial image stays on.
    import java.awt.*;
    import java.awt.image.*;
    public class Panel1 extends Panel {
         Image thebkg1;//image to display
    Panel1(Image ig){
         thebkg1=ig;
    }//end the constructor
    public void paint(Graphics g)
         g.drawImage(thebkg1,0,0,this);
    }//end paint
    public void update(Graphics g){
         paint(g);
    }//end update
    public void dImg(Image po){
         thebkg1=po;
         repaint();
    }//end dImg - gets called by the main Window in order to display a new image
    }//end Panel1 class
    Can somebody please let me know what is wrong with the code?
    Thank you

    public void dImg(Image po){
    thebkg1=po;
    validate()
    repaint();
    }

  • Why doesnt the folder your picture is in, light up in the folder panel?

    The collection does, or previous import does, but why cant the folder light up too?

    I like that idea.  Make sure you post it on the Official Feature Request/Bug Report Forum and you'll have my vote.

  • The difference between the bubble and the panel

    I just experienced another reason why I hate the bubble instead of the drawer/panel, besides the whole data entry thing.
    I had the calendar on my smaller 20" monitor on my right - I use my 30" monitor for the nuts and bolts of my work. The calendar was set to fill the screen vertically. I needed to enter something into a date near the bottom of the calendar, so I double-clicked it to edit, and the bubble ran off the bottom of my screen! I had two options - resize the calendar so I could see all of the bubble, or move the bloody thing to my 30" monitor so I could finish my task. With the old iCal, the panel would have just been to the right - no problem. I really miss the old iCal. A lot.

    Yah when I tried to add multiple components without sucess I got rather confused here is what I tried...
    I was making a non applet or a JFrame whatever you call them, so I made these two variables as class variables
    MyOtherComponent me = new MyOtherComponent();
    MyComponent mc=new MyComponent();
    (I definded the components later on in the class)
    I then wanted to display them, I did this in the class constructor which is called by main().
    MyComponent one;
    MyOtherComponent two;
    JButton button;
    me.setPreferredSize(new Dimension(40,40));
    mc.setPreferredSize(new Dimension(40,40));
    me.setPreferredSize(new Dimension(400,400));
    me.setVisible(true);
    mc.setVisible(true);          
    content.add(one = new MyComponent(), BorderLayout.CENTER);
    content.add(two = new MyOtherComponent(), BorderLayout.WEST);
    content.add(button = new JButton("yo"), BorderLayout.EAST);
    content.add(button = new JButton("S"), BorderLayout.SOUTH);
    content.add(button = new JButton("N"), BorderLayout.NORTH);
    I wanted to make a BorderLayout, and have two of my custom components in the layout but every time I try to run this mc is visible (the first component, and me is not visible...
    it says me is not visible but i set it to visible clearly in the code, what is the problem..
    dukes for this one

  • Why is the brush tool in Illustrator CC inferior to the brush tool in CS6? It has less control of fidelity and smoothness. It is terrible - and I'm an illustrator. Can I use the CS6 brush engin in CC?

    I loved the brush tool in CS6 Illustrator- by turning fidelity to the lowest setting, and smoothness down to zero, pumping up pressure sensitivity, it accurately reproduced the fine shapes of a drawn stroke. I'm an illustrator, so I don't want artificially smoothed curves, I want the line I drew.
    This works really well with my Wacom Cintiq tablet... but now CC has removed this level of customisation for the brush tool. WHY? The program is called Illustrator, and as an illustrator, I can tell you having an accurate and finely adjustable brush engine to illustrate with is very important to me and to lots of other people who can draw, and draw for a living.
    Now you get this dumbed down control panel when you double click on the brush tool icon- just one slider, with only 4 steps from 'accurate' (not very) to 'smooth' (almost indistiguishable from 'accurate')... it is like I have contracted a nerve disease - I draw a line, and it forms into something quite different to the path my pen took. WHY? Can I get rid of this rubbish engine? Trying the blob brush - what is the point of this brush? It is just like the old brush, except for a cursor that shows the largest size for pressure sensitivity... and it has the same crude 4 step smooth/accurate adjuster, that doesn't change the line much at all. I have the latest driver in my Cintiq, so I don't think that is the issue, and CS6 works better than CC.
    I am very disappointed, Adobe. Do I have to go back to CS6 for all my Illustration work? Please improve the CC brush tool controls.
    I am still reeling from Adobe's quiet removal of a whole tool: Inverse Kinematics/Bone tool from Flash CC JUST when I was finally using it to animate, but that's another story.
    Honestly, having use them for a while, Photoshop,
    Illlustrator, InDesign and Flash CC are, as far as I can tell, no step up at all from CS6, except that you have to pay for them forever.

    More on this, now becoming known as the CC pencil tool fiasco, on these fora:
    Re: PLEASE PLEASE adobe. The new pencil tool has become unusuble to me
    Re: Changing line fidelity with CS6 Brush Tool
    Re: All pressure sensitive brush presets gone!
    If you are affected by the lower accuracy controls for CC's brush or pencil tools, use this Bug report/Feature request form to let the folks at Adobe know- they are actually hopefully going to fix this.......
    thanks to Daniel for setting this up:
    hey all, if you are going to file a bug report (as per Neeraj's suggestion), i've made up a draft to make the process easier.  feel free to adjust it as much as you want, obviously; trying to equip us busy folk.
    Obviously customer service & product development are two different departments, so if you're bummin out on the new functionality, submit a bug report!
    link to submit bug report:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    ******BUG******
    Concise problem statement:
    I was told to by Neeraj N(staff) to report this issue based on this link : (http://forums.adobe.com/message/6065706).
    The Pencil / Brush tools have lost essential functionality with the addition of the new accurate / smooth adjustment preset. Users are no longer able to specify high-accuracy pen mapping, as the finest accuracy setting is now set to 2.5px (legacy versions allowed accuracy to .5px).
    I would think adding additional slider nodes to allow more accurate mapping (while still using the accurate / smooth preset) allow for a minimal change in programming with a maximum return for power users.
    Steps to reproduce bug:
    1. open illustrator
    2. use either pencil or brush tool.
    3. draw erratic and high detail shapes
    Results: shapes are smoothed to 2.5px smoothness, even when the accurate / smooth adjustment preset is set to full accuracy.
    Expected results: shapes have minimal / no smoothing to maintain the integrity of the artwork.
    Thank you for your consideration.

Maybe you are looking for

  • ADP Interface Questionnaire

    plz very urgent ! send the questionnaire used for asking questions to end users and used in blue printing on ADP interface with US payroll

  • Attachments in interactive form

    Hi, In online interactive form if I attache few files in the form and submit the data will these files will be appended in pdfsource of Interactive UI element? I have already tested pdfsource but there are no attachments only form with data is displa

  • Trying to show button images in a toolbar

    Hello, I'm trying to show buttons in a toolbar with the images contained in jlfgr-1_0.jar. I'm using as a base code the ToolBarDemo2 example from the Swing tutorial, but with the difference that my executable class ("D", for instance) is in a package

  • Reason wont open if logic is already open

    Hey guys. Im trying to rewire logic and reason. Reason opens fine normally, and logic open fine if reasons already open. However, if i have logic open, and i try to run reason, it says Can not open reason engine, make sure it is properly installed. I

  • Printing tab in Bar Code using SAPScript

    Hi, We are trying to print information from multiple fields in Bar code (using Code128 symbology) on our Utility Invoices, printing of which is done using SAPScript. Our objective is that when accepting payment using FPCJ transaction, the Cash Desk O