How can I get a container to be the same size as all its children

In my TitleWindow, I have two children that size themselves
dynamically.
No problem, TitleWindow also sizes itself to completely show
both children.
Now I have an additional child that I can only position
correctly if I set TitleWindow's layout parameter to absolute.
The third child now positions itself correctly on top of the
first child.
But now TitleWindow is only as big as the first child and I
have to scroll to see the second child.
How can I force TitleWindow to be the size it was when layout
was set to vertical?
Doug

Hi Doug - What exactly are you trying to do? Is the third
child being added dynamically, and you want it added above the
first child? If so, you can use the addChildAt() method when adding
the child to the container. addChildAt() takes an index and the
child object is added at that index and all other children are
reshuffled to maintain the ordering. IE:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:TitleWindow layout="vertical" id="tw">
<mx:Button id="a" />
<mx:Button id="b" click="go();"/>
</mx:TitleWindow>
<mx:Script>
<![CDATA[
private function go():void
var c:Button = new Button();
c.label="new";
tw.addChildAt(c, 0);
]]>
</mx:Script>
</mx:Application>
Does that help, or am I misinterpreting what you're trying to
do?

Similar Messages

  • How can I get iCal not to show the same birthday dates from my iCloud

    How can I get iCal not to show the same birthday dates from my iCloud?

    You don't need them stored locally for a backup. You can manually export your contacts as archive for backup. Also, if you are backing up with Time Machine, you already have a backup. If your hard drive crashed, you would have to rely on your backup or iCloud anyway.
    So, if you're comfortable with that, sign out of iCloud. Choose to delete contacts from the computer. When you sign back into iCloud, you should only have iCloud contacts listed in AB. When you open iCal, you should only have one listing for birthdays.
    The other alternative is to disable the Birthday c.alendar and create one manually.

  • How can I get my ipad to reflect the same playlist order that appears on my computer?

    How can I get my ipad to reflect the same playlist order that appears on my computer?  My computer has the exact desired order of playlist, but once the system is synced, the ipad does not reflect the propper order.

    In iTunes with your playlist shown in the correct order, right-click on the playlist name in the side-bar and click Copy to Play Order. Enable the side-bar with CTRL+S if necessary. Sync. Note also that the column you are sorting on should have the small triangle pointing upwards, otherwise the songs will play in the reverse order. You may also find that you need to first remove, and then add back the playlist to the device if syncing doesn't update it properly. See this post for more.
    tt2

  • How Can I replace an image and save the same size as the previous?

    I want to replace an image in a PDF, but I would like to keep the same size, and location as the previous. I have tried to to it, but the new image takes a different size.
    This is a PDF exported from an InDesign template.

    Thank you.
    The problem is that the person to edit the PDF doesn´t have ID and doesn't know how to use it.
    The idea is that the design department create very sharp ID templates for people from other departments of the company only have to replace information (text and image).
    We are looking for a program to edit PDF files and function as templates forreplacement information.

  • How can I get keys from Hashtable in the same order?

    Hello, everyone.
    I have a Hashtable containing key-value pairs, I need to get the keys in the same order as I use
    method put(key,value) to save the key-value pairs. But I can only find Hashtable.keys() to fetch the keys in form of Enumeration and when retrieve the keys from the Enumeration,they are not in the original order!
    The following is my code:
    Hashtable ht = new Hashtable();
    ht.put("Name","Harry Bott");
    ht.put("Gender","Male");
    ht.put("Age","25");
    String[] Items = new String[ht.size()];
    Enumeration e = ht.keys();
    int i = 0;
    while(e.hasMoreElements()) {
    Items[i++] =(String)(e.nextElement());
    The Items contains the keys but they are not in the original order.
    Does anyone know how to get the keys from a Hashtable in the same order when they're put?
    Thank you!

    yeah, another solution is to stored keys on a Collection at the same time you put them on the HashMap with its values.
    Then when ur going to retrieve objects from the Map u iterate the Collection that has the ordered keys and use them.

  • Downloading TV shows from itunes - episodes appearing seperately not all under the same series despite all the information being the same.  How can I get them to appear under the same series

    Just that
    I have many series - NCIS, West Wing etc where some episodes appear under the series and some appear on their own.
    I have checked the info anf they appear to be identical.
    How do I get them to group together corectly?

    After a couple of days, I'm noticing that the repeat(ing) offenders have more than 10 episodes, and seem to keep repeating them every time I sync.
    They only show once in my phone and in the iTunes Podcasts, but through iTunes and looking at what's in my phone is when I see the repeats.
    Even after I've marked a podcast as played, and deleted it from within my phone, as well as telling iTunes to delete the played episodes, it still shows multiples of the played episodes.
    There doesn't seem to be any rhyme or reason to it either. They aren't the newest ones either.

  • How can I get my website to display the same in multipul browsers?

    I am having trouble displaying my webpage in different browsers. I have run it through html & css validators and they can't pick up on any faults which would through the site out of line.
    When I display the same code on different computers, different aspects of the pages change even though the files are exactly the same.

    Start by running your page through the validator:
    http://validator.w3.org/
    You have some elements which are not nested properly such as scripts running outside of the head and body, required attributes missing, tags missing opening or closing, a <br /> tag in between </td> and <td>.  Then you can ignore the stuff about Flash because the Adobe codes for Flash and Spry never seem to validate.  Some of the other errors at the bottom like no </body> tag can be ignored because they are there, it just means there is a tag not closed before the end of the body so it generates an error saying the body was not properly closed.  The lines below that with tag mismatches will help you determine what is and what is not closed.
    If you get that done and still have errors please let us know what browser/version/error you are having an issue with.

  • How can I get my layout to look the same across multiple browswers?

    Hello forums!  How are you guys?
    I use Dreamweaver to edit my layout for my site.  However it looks fragmented on certain browsers and perfect on others. 
    www.ifuxkswiththat.com is the site.
    Is there something that can keep this uniform amongst other browsers?
    Check it on yours...it might work for you and it might not

    Your best bet is to get it right in something like Firefox or Safari, and then use some conditional CSS to tweak it in IE browsers.
    So put things like this in your header :
    <!--[if IE 5]>
    <style type="text/css">
    /* IE 5 does not use the standard box model, so the column widths are overidden to render the page correctly. */
    #outerWrapper #contentWrapper #leftColumn1 {
      width: 16em;
    #outerWrapper #contentWrapper #rightColumn1 {
      width: 16em;
    </style>
    <![endif]-->
    You can specify the particular IE browser above or use, for example <!--[if lte IE 7]> for IE 7 and below, or <!--[if lt IE 7]> for IE 6 and below.

  • How can I get a banner that stays the same?

    I basically want to have a banner on my website like the adobe one at the top of this very site. Where however far you scroll out it can always be seen. I also want to know how to do this with my background image. I know how to stop it from scrolling just not scalling. Thanks, for your help!!

    CSS:
    body  {
    background: #000 url(your-BG-image.jpg) no-repeat center center fixed;
    /**for Safari,Chrome**/
    -webkit-background-size: cover;
    /**for Firefox** /
    -moz-background-size: cover;
    /**for Opera**/
    -o-background-size: cover;
    /**for other browsers**/
    background-size: cover;
    Nancy O.

  • When i click on a photo file in windows , elements opens, then i have to go back into windows and click again to open file , earlier version opens program an file how can i get elements 12 to do the same?

    Elements

    The way I got around the situation was to write a custom folder action and attach it to my Downloads folder. The good thing about this is that it works irrespective of the browser du jour I'm using.
    This way you can define any filetype you're interested in to auto-open when a file is created in the Downloads folder (or any other folder of your choosing).
    It's not that tricky to add. I think I posted the code here many moons ago so I'll try and track it down...
    Edit: It was a post to macosxhints.com that I last linked to: http://www.macosxhints.com/article.php?story=20050122214044554#comments
    Hope some of that helps.

  • How can I get a new copy of the Voicemail app for my LG Spectrum?

    How can I get a new copy of the Voicemail app for my LG Spectrum?  It no longer works....the screen say Loading please wait....the
    !Visual Voice Mail - A Visual Voice Mail error has occurred.  Please try again. OK   I've tryed several times with the same message.  I've
    deleted the app from my screen and replaced it from the Apps Library....still the same message.
    I cannot find an answer on MyVerizon.  Any ideas?
    Thank you,
    Dee

    OK, at least 3 is working.
    I don't know how you have a Tape Recorder icon on your Home Screen. I cannot add one myself. But, I am running Holo Launcher in replacement of the default LG "Optimus" User Interface. It's much better in my opinion.
    Try long pressing the icon and select Edit and maybe you can change some attribute of the icon.
    Another thing you could do, is long-press an empty area of your desktop, to add an icon. Select Shortcut, then Select Contact, and scroll through your contact list and choose the contact that you added for *86.
    You realize if you have voice mail you haven't heard, there is a tape recorder icon in the notification bar, which you touch and pull down, then press it to dial voicemail.
    If that functionality doesn't work, you MIGHT want to consider doing a factory data reset on your device, but that is going to nuke all your personalizations and cause you work to set up again.

  • I had an apple ID which I used for iCloud.  I upgraded the iCloud account and changed the apple ID to a @me address. Now I can't view what was in my original apple ID account.  How can I get what was stored on the original account?

    I had an Apple ID which I used for iCloud.  I upgraded the iCloud account and changed the apple ID to a @me address. Now I can't view what was in my original apple ID account.  How can I get what was stored on the original account?

    cathorio wrote:
    I recently changed my lap top. My problem is the new lap top won't accept my apple I D it asked me to sing up for a new one which I did.
    I am puzzled by this. The laptop doesn't need the Apple ID - but iTunes does. I could be missing something but ....
    Why would you not be able to use your existing Apple ID and iTunes account on a new laptop? If you authorized the computer - you should be able to use your existing account - unless you already had 5 computers authorized with the existing ID - and that was why iTunes would not accept the ID. However, I'm sure that you would have received a popup message from iTunes telling you that you had reached the limit.
    I just received a new MBP and my daughter did as well. My entire family shares an Apple ID and we had no issues at all with my Apple ID and iTunes on our new computers and I did not have to sign up for a new account. Did you even try the old ID?

  • HOW can I get a GOOD copy of the iTunes software for my desktop?

    I solved MY corrupt firmware file problem!
    A little background- I deleted all Apple, iPod, and QuickTime software from my desktop PC and reloaded iTunes for the (I don't know how many) time. Same thing! Downloaded it again and used the "erase iTunes" option then reloaded again and had the same result. I then cranked up my old laptop and when I got to the Apple website, I was offered an opportunity to download QuickTime and took it. It came with iTunes if I wanted, so I took that too. After the download, I plugged in the Nano and it restored to Windows format. I did not want it to sync to the laptop, so I took it to the desktop and was able to sync with Nano and downloaded my tunes. TALK ABOUT HOKEY!
    WHY does the restore program have to be resident on MY PC or MAC anyway? Seems like I could just as simply download a current copy from Apple every time I want to restore.
    WHY doesn't Apple do something about this problem and let users know about the solution? Do they not want to grab a share of the Windows business? Here is an excellent opportunity!
    Now for my question.
    HOW can I get a GOOD copy of the iTunes software for my desktop? I now know it works! Is there a hidden file or folder I should delete before I make my next attempt to cleanup and download? Why isn't this information public?
    I spent over 30 years in the DP industry. PC is not my area of expertise, but this must be the most frustrating experience of my years.
    desktop   Windows XP  

    I THINK I have solved the problem. Can't be 100% because I don't want to try a restore. At least the Apple home page lites up correctly with quicktime now. It hadn't in the past.
    Thank you for your assistance. - LRB
    desktop   Windows XP  

  • How can I get an excel spreadsheet onto the iPad and make changes to it?  I need this for a meeting this afternoon.

    How can I get an excel spreadsheet onto the iPad and make changes to it during my meeting this afternoon?

    I just bought splashtop, you have to have your home computer online,and download the pc version.  I have used it ot watch movies and to "go to work" on my ipad.  It controls the desktop through the ipad.  Whiteboard by splashtop does that and more and is on sale.  The education director at the hospital I work at is using that one.
    Splashtop 4.99 remote desktop(or laptop) control. Whiteboard 9.99 is remote control and more 9.99
    Julie

  • How can we get a alert message in  the current browser we are using the mom

    how can we get a alert message in the current browser we are using the moment we have entered some data in
    the table...
    I need a popup alert the moment a new record is added in a table... in apex database is 11g xe..
    The idea is I am using a apex application. .The moment new data is added in the table ..I am alerted by a message window..that a new record has been added...
    Thanks
    Edited by: pauljohny on Jun 11, 2012 10:23 AM

    pauljohny wrote:
    how can we get a alert message in the current browser we are using the moment we have entered some data in the table...
    "Current browser"? When viewing anything, or just when using an APEX app?
    Ans .. Just when using apex app....even if the apex app is minimised ..The current browser will be the one where I am using apex app...
    What i am looking for some scheduler .. to check ..in the table every 5 minute for change if there is a change..then a popup alert be shown...
    Split it into [at least] 2 components, database and browser. I'd expect someone calling themself a "DBA Architect" to have some ideas about the database side of things, even if not clued up on JavaScript and AJAX?
    I dont think its a database isssue... When i say to check every 5 minutes ..it could be easily done via dbms_scheduler ...I am having issue in getting the popup alert message...
    in apex... Dont know wether there is a plugin like modal window(available from skill builder) which shall help in this scenario,.Or might be have to use java scripting and ajax ..
    and if it is that (Java scripting and Ajax) .....then shall have to be familiar with java scripting and Ajax...and this shall be a bit time consuming..
    Had a feeling this could be accomplished via java scripting and ajax.. ...but still looking for some easy way..

Maybe you are looking for

  • CRM 2007 IC : error "BP category 2 does not fit the data in category 1"

    Hi Guys, When I am trying to save the data on the Bupacreate page it gives the error as follows. "BP category 2 does not fit the data in category 1". Can anyone suggest what is causing this error to happen and how this error can be corrected. thanks

  • Custom Tag not evaluating expression in attribute

    I have a custom tag that needs to take dynamic values in the attributes, but I can't seem to get the values "interpreted" correctly. I have the <rtexprvalue> tag set to "true" in my .tld file, which I thought was the only thing that was needed in ord

  • Copy a subroutine with include on a different server

    Hi I need to copy a subroutine which has many includes and into that includes there are many perform.how to copy such kind of subroutines.I have a subroutine and its PERFORM statement PRG also exist but they are not linked i.e when i double click on

  • How do I burn my videos onto dvd

    I tried burning a video playlist onto DVD afterwards I tried playing it but the files could not be read. Please Help!

  • How to activate CUDA to ray-trace in After effects CC?

    When ever I start AE I am getting warning says"Ray-traceing on the GPU requires an approved NVIDA graphics card and CUDO 5.0 or later. For now, ray-tracing will use the CPU..." Well I installed the latest CUDA 5.5.28 and restarted my computer but sti