Can't drag the divider of HDividedBox

hello everyone, this is my code:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" >
<fx:Script>
  <![CDATA[
   protected function btnRemove_clickHandler(event:MouseEvent):void
    while(hbox.numChildren>0){
     hbox.removeChildAt(0);
   protected function btnAdd_clickHandler(event:MouseEvent):void
    hbox.addChild(a);
    hbox.addChild(b);
   protected function btnAddNew_clickHandler(event:MouseEvent):void
    var p:Panel = new Panel();
    p.title = "C";
    p.percentWidth = 50;
    hbox.addChild(p);
    var p2:Panel = new Panel();
    p2.title = "D";
    p2.percentWidth = 50;
    hbox.addChild(p2);
  ]]>
</fx:Script>
<fx:Declarations>
  <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:layout>
  <s:VerticalLayout/>
</s:layout>
<s:Button label="Remove" id="btnRemove" click="btnRemove_clickHandler(event)"/>
<s:Button label="Add" id="btnAdd" click="btnAdd_clickHandler(event)"/>
<s:Button label="AddNew" id="btnAddNew" click="btnAddNew_clickHandler(event)"/>
<mx:HDividedBox width="100%" height="100" id="hbox">
  <mx:Panel title="A" id="a" width="100%" height="100%">
  </mx:Panel>
  <mx:Panel title="B" id="b" width="100%" height="100%">
  </mx:Panel>
</mx:HDividedBox>
</s:Application>
my problem is :
when i first load the application,i can drag the divider of  HDividedBox.
after i click the remove button,remove all children of HDividedBox.
i click Add Button  ,add the old child, but i can't drag the divider again.
i click AddNew Button ,sometime can drag the divider but sometime can't
it is so strange.i cost a lot of time on it ,but can't find the reason.i need some help to resolve it,thanks!

Try adding hbox.validateNow() after adding or removing children?

Similar Messages

  • HT1203 How do you put music from one itunes account to another? Can you drag the music?

    How do you put music from one itunes account to another? Can you drag the music?

    You can use Home sharing

  • I would like to copy my iPhoto (9.4.1) library from my Mac Pro (10.7.5) to a Macbook Pro (10.7.5). Can I drag the iPhoto Library to Air Drop and send them to the MacBook? Will that then be a usable iPhoto library on the Macbook?

    I would like to copy my iPhoto (9.4.1) library from my Mac Pro (10.7.5) to a Macbook Pro (10.7.5). Can I drag the iPhoto Library from the Pictures folder to Air Drop and send them to the MacBook? If I then move that to the Pictures folder on the MacBook will that then be a usable iPhoto library on the Macbook?

    It would be better if you could connect the two Macs via a hard wired LAN to copy the library from the Mac Pro to the MacBook.  Wireless connections can have momentary dropouts which could affect the reliable copying of files. 
    If you do go with Air Drop be sure to open and inspect the copied library closely to confirm it was a successulf copy.
    OT

  • How do I put shortcuts to web sites in a (?) tool bar/browser bar...don't know what it is called. With IE, I can just drag the tab for the site to the area I want.

    How do I put shortcuts to web sites in a (?) tool bar/browser bar...don't know what it is called. With IE, I can just drag the tab for the site to the area I want

    Near the right-end of the address bar is a white star which can be difficult to see, but look closely. When you wish to bookmark a shortcut to the toolbar, double click the star. A window will open with the name of the webpage. Under that is the folder box which will probably read 'Unsorted Bookmarks'. Click the drop down arrow and change it to 'Bookmarks Toolbar' then click done.
    I have several folders on my toolbar such as Music, Mail, etc. in which I add multiple websites. If you wish to add a folder, click the second drop down arrow next to 'Bookmark Toolbar' and click 'New Folder' and give it a name.
    To add a bookmark to a folder, again double click the star, make sure you are in Bookmark Toolbar and click one of the two drop down arrows to find the name of the folder.
    For other bookmarks use Bookmark Menu. Whatever is added here can be accessed by Bookmarks on the Menu Bar. If your Menu Bar with Bookmark, File, View, etc. is not visible, click the Alt key and they will become visible. To keep the Menu Bar, click View, Toolbars and check Menu Bar.

  • I can't drag the Icon into the Applic. folder

    I have a iMac and can't drag the FF icon into the Applications folder

    Firefox 5 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 5 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
    If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • My I pod only works with double click and I can't  drag the screen with my finger?

    Hi,
    My i-pod doesn't work very well at the moment.
    I can't drag over the screen en have to double click on my screen. I can't drag the screen from left to rigth and not from above to below.
    The hard reset didn't work and i can't reach the menu where i can restore all setting. My son alternated one of the direction.
    who can help me?
    thanks
    gtz Ton

    You have the accessibility VoiceOver feature turned on.
    Triple click the home button and try going to Settings>General>Accessibility and turn VoiceOver off. You may have to use three fingers to scroll the screen to get there. If problems see the following for how to turn off via iTunes:
      iPhone: Configuring accessibility features (including VoiceOver and Zoom)

  • Can't drag the finder title anymore

    Once upon a time I could drag the title of a finder window (say /Volumes/backup) into the terminal window.
    Now I get all this in the terminal window:
    Backup :
    .com.apple.timemachine.supported
    .DS_Store
    .fseventsd:
    00000000012157c9
    000000000121711f
    0000000001218896
    000000000121da1f
    0000000001abbf25
    0000000001ac1b3b
    0000000001f03385
    fseventsd-uuid
    .Spotlight-V100:
    Store-V1:
    Stores:
    5D6632F5-B90F-4884-A658-61D8E4F5117F:
    .store.db
    0.indexArrays
    0.indexCompactDirectory
    0.indexDirectory
    0.indexGroups
    0.indexHead
    0.indexIds
    0.indexPositions
    0.indexPostings
    0.indexUpdates
    0.shadowIndexGroups
    0.shadowIndexHead
    indexState
    journalAttr.35
    journalExclusion
    journalLive
    journalSync
    live.0.indexArrays
    live.0.indexCompactDirectory
    live.0.indexDirectory
    live.0.indexGroups
    live.0.indexHead
    live.0.indexIds
    live.0.indexPositions
    live.0.indexPositionTable
    live.0.indexPostings
    live.0.indexTermIds
    live.0.indexUpdates
    live.0.shadowIndexArrays
    live.0.shadowIndexCompactDirectory
    live.0.shadowIndexDirectory
    live.0.shadowIndexGroups
    live.0.shadowIndexHead
    live.0.shadowIndexPositionTable
    live.0.shadowIndexTermIds
    store.db
    store.updates
    VolumeConfig.plist
    .Trashes:
    (access denied)
    What is all this and how do I get it so I just get '/Volumes/Backup' again?
    Thanks in advance

    What you drag is the little "proxy icon" in front of the name of item in the Finder window, and I don't know why yours isn't working--mine does. It looks like what you are getting is the result of a ls -a command. Anyway, if type ls -a, a space, and then drag 'n drop the proxy icon into Terminal, I get this:
    NoobiX:~ francine$ ls -a /Volumes/Time
    .VolumeIcon.icns
    .com.apple.timemachine.supported
    .0017f20dca84
    .fseventsd
    .DS_Store
    Backups.backupdb
    .Spotlight-V100
    Desktop DB
    Desktop DF
    .Trashes
    For a mounted disk, you can also just drag its icon from the Desktop into Terminal.
    Francine
    Francine
    Schwieder

  • Can't drag the border of JTabbedPane

    Hi,
    I met a problem in programming JTabbedPane. I am now fixing some bugs in a existing project, so I am not familar with JTabbedPane.
    In my case, I am not able to adjust the size of JTabbedPane by dragging the border of it. This JTabbedPane is in the right side of a JSplitPane. However, if the right side pane is replaced by a JLabel, then I can drag the border of JLabel.
    I don't why it happens? Does this mean once a JTabbedPane is created (includes it's component inside), I can't change it size anymore? Is there any one who can give me any ideas?
    Thanks
    Feng

    Yes, I also got this conclusion. The problem is caused by the size of inside component.
    There are one JLabel and one JTextField inside my JToolbar. If the string in the JTextField is short, I am able to adjust the width of JToolbar, however, only made it bigger. But if the text inside the JTextField is longer than than the width of screen. the edge of JToolbar is no longer able to be adjusted.
    I know the cause is the size of text in the JTextField. It made the JTextField very long. I know the reason, but I don't know how to solve it. Any one could help me for that?
    Thanks
    Feng

  • IDD CS3 Can't drag the window completely open

    This is weird - When working in InDesign (3), Mac osx, oftentimes I cannot drag the lower corner to open up the window. I can make it smaller/narrower but not full screen. I sometimes want to see all the text but also see whatever is on the pasteboard.
    Right now, for example, the window will only allow itself to be dragged 1/2 the width of my screen.
    It's not like this all the time, and I can't find the answer to the problem. It's not a View thing.

    Do you have palettes open on the side? If so collapse them and you should be able to open the window.

  • How can I drag the edge/resize a text box on the 3rd row w/o changing all the rows above it?

    I am new to Acrobat and FormsCentral of course.
    I have three rows of text boxes, something like this:
    Name
    (other text fields)
    Primary Address
    I want the input box to be immediately following the label; for example (pretend the underline is the input box:
    Name ___________
    (other text fields)
    Primary Address ___________
    However, Forms Central looks like this:
    Name        _________________
    (other text fields)
    Primary
    Address     ______________
    When I try to edit the Primary Address box, either by dragging the right label edge or the left text box edge on that field, it also drags the edges of the fields above it!
    Is there a way NOT to do this?
    I've been trying to find tutorials on how to manipulate the design/layout of the forms, but so far all the YouTube and other tutorials I've seen simply do a vertical form, one field per line.
    Thanks!

    You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
    Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
    This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
    Thanks,
    Josh

  • Can't drag the currency key in local currency to the pool of fields not use

    Hi everyone,
    Hopefully you can enlighten me with this issue coz im trying to drag the currency key in local currency to the pool of fields not used (UCWB<Data Model<Data Basis<Data Model(TAB)) but nothing happened, i can't transfer it to the pool of fields not used.
    Note:I came with this decision(transferring the currency key in local currency to the pool of fields not used ) because SAP prompt me with this:
    The currency key in local currency is not required in the data basis. It is merely an implicit part of the data model
    I really dont have any idea why i can't drag it to the pool of filed not used, i tried to look for some sap notes but i can't find one.
    thanks in advance

    Hi Dan,
    Actually it is not really an error, i just would like to pattern the configuration of our newly upgraded BI server  to our BW server.
    In our BW server, the currency key in local currency is mapped to the pool of fields not used. I can't seem to do the same in the BI server because everytime I try to drag the currency key in local currency to the pool of fields not used, nothing happens, it isn't mapped.

  • Can you hide the divider of a split pane ?

    I have a split pane, the application also has menu options that allow the user to turn off one of the panes if they like, this results in the pane disappearing but the splitpane divider still exists.
    Can this be removed, and if not is it acceptable look for the divider to exist when only one side of the splitpane is visible, or do I have to remove the splitpane from its parent and just add the visible component of the splitpane to the parent directly when only one is selected, reversing the code when user wishes to have both visible.

    Thanks that works fine. Although it is a shame there is no splitpane.getDivider() method, I assume there is no explicit guarantee that the LAF being used actually subclasses BasicSplitPaneUI, so I need to make appropriate checks.

  • HT2845 I am using a Magic Mouse on my MAC computer but when I drag object/files etc it only move them a inch or so and then I can not drag the object anymore, help?

    I  am using a Magic Mouse on my MAC, when I drag objects/files etc after dragging the object for an inch or so the object stops and I can not drag it any further.
    Has anyone a solution, I have checked the batteries etc.

    I  am using a Magic Mouse on my MAC, when I drag objects/files etc after dragging the object for an inch or so the object stops and I can not drag it any further.
    Has anyone a solution, I have checked the batteries etc.

  • Trying to use my home sharing on new macbook air, but I physically can't drag the songs into my music. What do I need to do to change this?

    Basically, I've set up my home sharing between my macbook air, and our mac mini at home. The home sharing option shows up on both computars, and the music is visable and available to listen to when I bring it up on home sharing from the mac mini, but when I try to actually drag the music over to my music on my macbook. Both of our itunes are completely up to date. Is there any way to fix this?

    *When I try to drag over the music, it won't let me. That's what I meant to say.

  • Can't drag the volume slider

    DEAR MAC USERS
    I OPENED MY MAC THIS MORNING AND WHEN I TURNED THE ITUNES ON I COULDN'T HEAR A THING. I COULDN'T EVEN DRAG THE SLIDER, WHICH BY THE WAY IS GRAY (MAYBE IT WAS GRAY THE WHOLE TIME). ANY IDEAS?

    Hi Lex.
    Its 77, heaven help me.      And going strong, thank you.   I think its the early morning whisky.
    Just found that effect of shut down interesting; I am still on good old Snow Leopard (and intend to stay there as long as possible).
    Seasonal greetings to you and yours.
    71. (???)
    And Hello Bettyathen.   Do forgive the intrusion on your post, but allow me to offer Christmas greetings to you, too.

Maybe you are looking for

  • MDP - HDMI Questions and Answers

    I recently purchased a 13" Macbook Pro. Love the computer but obviously with a 13" screen I wanted something bigger at home. I had a 32" TV that I wanted to use as a monitor so I purchased the MDP-HDMI adapter. The adapter worked fine but there a cou

  • Odd green squares display problem

    Hi. In some applications, such as Keynote, Pages and World Of Warcraft, my Macbook Pro does an odd thing with the display. Sometimes squares appear around the centre of the screen (less than 10px in size) and they're often clumped in a bit of a check

  • Mountain lion crashed?

    here with chronological review of what happened 26/7  downloaded Mountain Lion, which took abt 20 hrs          very happy with the new features after about a week, things on my computer got slower. So via checking the internet, I managed to find a so

  • Publish Aggregator flash file in version 8?

    I would like to use the aggregator in Captivate 4 as a menu to link several tutorials together.  However, my company uses Flash Player version 8 (PCs are locked down and NO ONE is allowed to upgrade anything).  This is no problem with the individual

  • Why doesn't the "zoom in/out" via pinching the trackpad on my mac not work anymore with firefox? It worked before and still works with Safari.

    why doesn't the "zoom in/out" feature by pinching the trackpad on my mac work anymore with firefox? It worked about a month ago, and still works on Safari.