Resizing & Positioning Children within a Panel

I'm trying to insert an element into a Panel that has a vertical layout, and create a transition that smoothly inserts the new item in between 2 existing items in the base state of the application.  My goal is for the bottom text field to remain anchored to the bottom of the panel as the panel resizes, instead of jumping to its new position, so that the middle text input can then gracefully fade in.
Am I just missing something in how I'm defining the transitions, or will the effects not yet account for the positioning of items from layout?  Attached is the MXML app and the compiled SWF.
Thanks.

This will get you what you want. There's a tricky interaction between adding the new element and the vertical layout. The third item won't make room for the second one unless the second one is actually added to the parent. But adding it will immediately make it visible, which is not what you want. So I tweaked the effect to add it but make it non-visible (alpha==0), then Resize the second element itself (the panel will resize automatically), *then* fade in the second element.
            <s:Sequence>
                <s:SetAction target="{secondTxt}" property="alpha" value="0"/>
                <s:Resize target="{secondTxt}" heightFrom="0"/>
                <s:Parallel>
                    <s:Move target="{thirdTxt}" />
                    <s:Fade target="{secondTxt}" alphaTo="1"/>
                </s:Parallel>
            </s:Sequence>
Chet.

Similar Messages

  • Accordion - Ajax within accordion panel resize issue

    Hi,
    I'm in a little bit of a fix.
    I have an accordion whose panels have ajax enabled regions
    within them.
    The ajax enabled regions have search forms which give a
    search result within the same page (which is basically within the
    panel as well) once a button is clicked.
    My issue is that once I click search, my result set increases
    the size of the page causing the accodion panel to enable a scroll
    bar. Is there some way in which I can have spry resize the panel
    instead of it enabling a scroll bar?
    If I open and close the tab ofcourse, the region is resized
    to cater to the search results as well with no scroll bar.
    Incase this is not possible, is there a way to reopen the
    selected panel on a page refresh event as all the tabs are closed
    when a refresh occurs.
    Thanks!
    When the accordion opens up, it shows

    Hi kundalani,
    If you are using Spry.Utils.updateContent() to load the
    contents of the panel, you can pass in a callback that sets the
    height of the AccordionPanelContent to "auto" after the new content
    has loaded:
    function LoadContent(ele, url)
    ele = Spry.$(ele);
    Spry.Utils.updateContent(ele, url, function() {
    ele.style.height = "auto"; });
    <a href="#" onclick="LoadContent('e1p2',
    '../../data/frag1.html'); return false;">Frag 1</a> |
    <a href="#" onclick="LoadContent('e1p2',
    '../../data/frag2.html'); return false;">Frag
    2</a></p>
    <p> </p>
    <div id="example1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 1
    </div>
    <div id="e1p1" class="AccordionPanelContent">
    <p>Panel 1</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 2
    </div>
    <div id="e1p2" class="AccordionPanelContent">
    <p>Panel 2</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 3
    </div>
    <div id="e1p3" class="AccordionPanelContent">
    <p>Panel 3</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 4
    </div>
    <div id="e1p4" class="AccordionPanelContent">
    <p>Panel 4</p>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var example1 = new Spry.Widget.Accordion("example1", {
    useFixedPanelHeights: false });
    </script>
    --== Kin ==--

  • Button interactions within Scroll Panel/Content

    I am creating a portfolio website using Flash Catalyst. On my Portfolio page I have a vertical scroll panel and within that panel I have little thumbnails of my artwork converted to a button component. So when the user click on the thumbnail I want the larger image to appear nearby. I make new states for the larger images within the scrolling content, but whenever I use the scroll thumb it also scroll the larger images that i want it to be in a fixed position. So is there anyway I can lock the larger image while user is able to scroll through the thumbnails. If not possible, is there anyway i can duplicate the events on the timeline from one page/state to another similar one?
    If there is a better way to accomplish this please let me know too, I am all ears. If you need clarification on my issue, I will try my best to explain it through texts.

    Hi,
    Here's a quick wireframe to illustrate the thumbnail separate from the detail image.   The large images could be in their own custom component or in different states in the main timeline (per this example).
    The scroll bar needs be edited to look nicer.
    Hope this helps.
    Tanya

  • How do I resize an image within a drop zone (not the drop zone itself) in motion 5?

    How do I resize an image within a drop zone (not the drop zone itself) in motion 5?

    I think others would be able to help if you describe a little more why you'd like to do this. Given that drop zones are a way of passing images into Motion that you want to manipulate, resizing a drop zone is the equivalent of resizing the image.
    If you're having a problem with an image from Final Cut being too big or too small, select the Drop Zone in the inspector and make sure the Fit parameter is set to 'Fit' - 'Center' will result in images dropped not being scaled to fit the Drop Zone. 'Stretch' will force the dropped image to fill the space defined by the drop zone,
    If the image is already cropped and scaled up in Final Cut Pro, that is the information that Motion gets - you can't scale down the image to see more of the edges that have been cropped off.
    If you want more than one copy of the image passed via the drop zone, use Make Clone Layer from the Object menu.

  • Is it possible to resize the children of a viewstack(coverflow)

    I am using a coverflow component which extends a viewstack: http://dougmccune.com/blog/2007/11/03/coverflow-flex-component/
    I can add children (canvas with an image)  fine by explicity setting the width and height of the canvas. Then i can align the children in the centre of the canvas.
    However if i specify a different size of canvas when adding a new child all the previosuly added children become unaligned.
    So is there any way to resize the children of a viewstack? Or does anyone have any other solutions?
    here is my add child code:
    var tmpchild:Canvas = new Canvas();
    //These can't be changed without un aligning other children already present in the viewstack
    tmpchild.height=170;
    tmpchild.width=170;
    var tmpimage:Image = new Image();                         
    tmpimage.source=imageSource;
    tmpimage.horizontalCenter=0;
    tmpimage.verticalCenter=0;
    tmpchild.addChild(tmpimage);
    tmpchild.verticalCenter = 0;
    coverflow.addChild(tmpchild);
    Thanks

    I don't believe so. Changing the parent container will directly effect the children of that container.

  • Panel within a Panel

    Hi,
    how can i add a panel within a Panel or to update the second panel within a panel having the same frame.
    pls advise.
    bunch of thks

    I don't know if this is what you're wondering, but this code adds a panel to a panel.
    JPanel panel = new JPanel();
    JPanel subPanel = new JPanel();
    panel.add(subPanel);Josh

  • No icons within Control Panel, Administrative Tools Folder

    I believe this problems relates to a terminal services policy package as
    the problem only exists on our Citrix Metafrme servers. Regardless of who
    logs onto the console of any of our 6 Citrix W2K servers, within Control
    Panel, Administrative tools, there are either 0 icons or 2 .NET framework
    icons only. I can however access all icons in Administrative Tools by
    going through Start, Programs, Administrative tools.
    Can anyone assure me that this is a policy issue and where the settings
    are as I'm ****ed if I can find them?
    Thanks
    Lenny

    Lennyd,
    It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
    - You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
    If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Setting a fixed width and a changing height for a component within a panel

    Alright guys here's my next question. I'm now having trouble trying to figure out how to only resize the height of a JTabbedPane yet keep the width fixed. In other words, as the JPanel its in changes in size, I'd like to have the width of my tabbed pane stay a certain value yet let the height of it adjust to the panel's height as it changes. Is there a way to somehow extract the panel's height into a int or something and then when using the setPreferredSize() function simply implement this retrieved value into the function's height parameter? I've tried messing around with Dimensions and getHeight() functions and the sort but to no success. For instance, within the constructor of one of my JFrames using System.out.println(this.getHeight()); prints 0, when of course this is not the case in reality for the frame's height. The panel's changing size is due to the user resizing the window its in. In one of my previous threads in this forum I learned how to use a GridLayout (it was 2 rows and 1 column in size) to keep the height of the top area in a BorderLayout fixed, yet as the user resized the window, the layout would stretch the area width-wise accordingly. However, that was because I had 2 cells in the layout to control, and I know this wouldn't work with only 1. Any ideas?

    You still apparently haven't read the tutorial on using Layout Managers to understand the capabilites of each Layout Manager.
    For instance, within the constructor of one of my JFrames using
    System.out.println(this.getHeight()); prints 0, when of course this is not the case in reality for the frame's heightComponents don't have a size until the GUI is visible on the screen. That is until you've done a pack(), or a setVisible( true ). You should never be using setSize().
    Layout Managers use setPreferredSize() ,setMinimumSize() and setMaximumSize() as suggestions for determining the layout. Although most layout managers don't use all the suggestions, which is why you need to read the tutorial to find out how the layout managers work.
    I'm now having trouble trying to figure out how to only resize the height
    of a JTabbedPane yet keep the width fixedWell, I don't understand the requirement. The preferred size of a tabbed pane is equal to the preferred size of the largest tab added to the tabbed pane. So I don't understand the concept of artificially changing the vertical height.
    Anyway reread the tutorial on "How to Use the Border Layout". Two of the 5 areas respect the width of the component but alter the height to fill all the available space.
    If you need further help then you need to create a [url http://homepage1.nifty.com/algafield/sscce.html]Short, Self Contained, Compilable and Executable, Example Program that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    And don't forget to use the [url http://forum.java.sun.com/help.jspa?sec=formatting]Code Formatting Tags so the code retains its original formatting.

  • LRCC - Resize adjustment brush WITHIN a graduated/radial filter

    Easier to explain by detailing the steps to reproduce the issue:
    - switch to grad filter (M)
    - Zoom in (Z)
    - position the filter somewhere on the image
    - Use the "adjustment brush" tool within the grad filter (shift+T)
    - Use the mouse scroll-wheel to resize the brush.
    The brush size changes as expected but the image also scrolls. This is not the same as the behaviour of the standard adjustment brush.
    Is there a setting to turn this "feature" on/off?
    Thanks. Rob
    LRCC on Windows7

    Certainly is weird behavior. You should report the quirk here: Photoshop Family Customer Community

  • Assigning position hierarchy within Org Model

    Hi,
    have maintained the org model with sales org and position in crm 5.0. This position is President sales and would like to maintain General Manager under this position as a subordinate. While doing so, I get the following message:
    <b>Before you select a function, select suitable entries in the structure.
        Message no. 5W707
    Diagnosis
        You have chosen a function for which a selection of  suitable entries in the structure is a prerequisite.
    Procedure
        Select one or more suitable functions in the structure and choose the function again. You can use the right mouse-button to display all the functions you can carry out for an entry.</b>
    What else am I missing here
    Thanks
    Kumar

    Hi Diana,
    Thanks for the inputs. I have rewarded points.
    As per your mail, we could maintain two positions under single organization unit one with the 'head of org unit' check and the other without that. Now they both appear under the same org unit but they appear as two positions (only difference is that the icons are different).
    What I am looking at is, Sales Org 1 should have a sub tree (arrow mark) with Mgr Director position, when I drop down this positions arrow mark, then I only I should be able to see the General Mgr's position (the GM's position should not appear parallel to the MD's position on the tree structure but should be within the MD's position)
    Can we assign any position to the head position by any standard means ?
    Hope you got my requirement clear, else let me know I can explain in more detail.
    Thanks
    Kumar

  • How to obtain position/view within PDF

    There is much information regarding how to open a PDF at a particular page etc. from the command line.
    How can the data be obtained and stored externally while reading the document.
    Perhaps more precisely, if I edited a page and then later wanted to open the PDF at a specific edit from, say, a shortcut, because I don't wish to write down the page number how might I go about obtaining the data to add to the shortcut command line?
    Thank you

    Thank you.
    I have read from the link you provided but it only tells me what I knew regarding how to achieve this manually not programmatically.
    I can see that I have not explained very well.
    I wish through external means (a program/script I will write), to click a button at any time and multiple times, while reading a PDFand have the program obtain (from somewhere/anywhere/even Windows itself) the position I am at while reading a PDF and inject it into a url.
    The end result will be a list (in an HTML page?) of the url's I have saved. i.e. the same as internal bookmarks but external.
    The information exists because a PDF can be re-opened at the current page when closing by it saving that information.
    I do understand that I can do it by noting the position myself and injecting it.
    Useage example:
    While editing video's I am reading from several PDF's at the same time, with differing viewpoints, and at various stages I want to bookmark and make a comment from whichever PDF my eyes are on (thus effectively at random).
    Doing it within the PDF does not tell me (later, externally) which PDF or the order in which the bookmarks were made, if I wish to recreate the learning process.
    All I can at present do is open each PDF and got to its various bookmarks out of sequence both within the book and choice of book.
    Clearly the bookmarks need to appear in a list in the order created and each must select the appropriate book and page within that book. Then the previous session's progress can be recreated.
    Perhaps it is now clearer.
    I can write the program but where do I obtain, programmatically when I click the button, the current PDF title (file url) and page number within it, to place in the list of url's?
    Any suggestions please

  • Position parameter within 3D nested groups?

    I have a total of six drop zones in 3D space. They are vertical, while the animated background is slanted in the x-axis beneath them. I'm getting a little confused as to the x, y, z coordinates of the drop zones, as they do not seem to be relative to the 0,0,0 xyz coordinates of the canvas. Is there a way to take a screenprint of the canvas and layers tab for me to post? Until then, here is how the nesting looks within the layers tab:
    -user content
    -drop zone 3
    -drop zone 3 portrait
    -drop zone 3 landscape
    -drop zone 2
    -drop zone 2 portrait
    -drop zone 2 landscape
    -drop zone 1
    -drop zone 1 portrait
    -drop zone 1 landscape
    I have the entire user content group dropping vertically down, and then animate each of the drop zones. My confusion comes in that I've been keyframing the positions, which I find easier than the record button. But, the positions of the individual portrait and landscape drop zones seem to take their 0,0,0 relative to the position of the group they are within, rather than the absolute zero of the canvas. For instance, when drop zone 3 appears to be right in the center of the canvas, it's x and y coordinates are somewhere around 260, -200, which is its position relative to the user content group, not the canvas as a whole. Should I animate them all individually instead of in groups to get actual x,y,z coordinates? or does it even matter?

    I should have previewed the post as it took away the formatting for the nesting. The user content group has drop zones 1, 2, and 3 nested within it. Each drop zone group has the portrait and landscape drop zone (with applied effects) nested within it. The x,y,z coordinates of the actual drop zones appear to be relative to the top level group, rather than to the 0,0,0 of the canvas. Wow, that was a much more concise way of explaining the issue.

  • Positioning text within block

    Hi
    I am wanting to postion text within a Box/block, these are list items that I have used as navigation buttons.
    I have set the box size and have selected "center" for text positioning, this positions the text in the centre horizontally ok.
    I would like to know how to position the text centrally verticially aswell?
    Many thanks
    Mark

    Hi
    Thanks for quick answer.
    I can get the padding within a div option to work, but one of the List  items/ button texts needs different padding to the others because it is two lines of text.
    Can I differentiate the treatment of one "Li" ??
    Cheers
    Mark

  • Resizing, positioning & applying a border to jpgs in templates

    I want to create a template that contains text and an image for screen output. This template will be used to generate jpgs with a different single image in each but the text remains unchanged.
    The idea is to produce a slide show where the background with text remains the same but the image changes with each new "slide". I need to do hundreds of these, so a quick, simple method is desirable.
    Can someone advise me how to insert images so they are automatically centered and resized (minimally) within a bordered frame within the background template?
    A sample of what I am trying to do is attached.
    Thanks for any help you can give me.                      

    I think you are employing the wrong methodology and are looking to work in the wrong program. If it really only needs to be text on an image, then saved to JPEG, this would be much more suitable to Photoshop. You'd create a simple action for it, then run it in batch. Of course AI also has actions and such, but in particular the sizing and centering will be awkward to express this way, as AI treats everything as objects and they may yield different placement in relation to the canvas. Photoshop on the otehr hand always resizes centered without complaining, so it would be that much easier...
    Mylenium

  • Scrolling within Accordion panel

    Hi, I have an Accordion panel with a lot of text within one of the panels. The panel is pinned and the text flows below the browser baseline when opened on smaller screen sizes. Would be great to have a mini scroll bar included as an option in future to get around this problem. Thanks!

    Hi kundalani,
    If you are using Spry.Utils.updateContent() to load the
    contents of the panel, you can pass in a callback that sets the
    height of the AccordionPanelContent to "auto" after the new content
    has loaded:
    function LoadContent(ele, url)
    ele = Spry.$(ele);
    Spry.Utils.updateContent(ele, url, function() {
    ele.style.height = "auto"; });
    <a href="#" onclick="LoadContent('e1p2',
    '../../data/frag1.html'); return false;">Frag 1</a> |
    <a href="#" onclick="LoadContent('e1p2',
    '../../data/frag2.html'); return false;">Frag
    2</a></p>
    <p> </p>
    <div id="example1" class="Accordion" tabindex="0">
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 1
    </div>
    <div id="e1p1" class="AccordionPanelContent">
    <p>Panel 1</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 2
    </div>
    <div id="e1p2" class="AccordionPanelContent">
    <p>Panel 2</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 3
    </div>
    <div id="e1p3" class="AccordionPanelContent">
    <p>Panel 3</p>
    </div>
    </div>
    <div class="AccordionPanel">
    <div class="AccordionPanelTab">Panel 4
    </div>
    <div id="e1p4" class="AccordionPanelContent">
    <p>Panel 4</p>
    </div>
    </div>
    </div>
    <script type="text/javascript">
    var example1 = new Spry.Widget.Accordion("example1", {
    useFixedPanelHeights: false });
    </script>
    --== Kin ==--

Maybe you are looking for

  • Report on PO on G/L account

    Hello Gurus, I need to be able to run a report which shows the following information: Date - from 1-1-2008 G/L account 53030004 all PO's (open and closed), with short description, amount, costcentre .  I can run a report on the actual costs / invoice

  • Oracle BI Server stopped when i tried to login using LDAP

    Hi, My BI server stop suddendly when i tried to login with my LDAP username/pwd, it was working fine when i was using Adminsitrator/SADMIN, and when i tried to start it using ./run-sa.sh start it has the below error in the log: *[oraclebi@uschilxbit0

  • My Mac Pro 1,1 won't boot, problems with disk.

    I am having problems booting my 2006 Mac Pro 1,1. I was using my computer just fine and then I shut the computer down. When I tried to restart it the computer booted the the Apple logo and the status whell began turning, and then a progress bar appea

  • Table Load Sequence - Referential Key Hierarchy

    I have a schema with around 100 tables. I need to load data in those table in such an order so that none of the referential integrity constraints fail while loading the data. Is there a way I can build a load sequence using some referential key hiera

  • What are decent 3G speeds ?

    I seem to be getting about 396kbps on average.... Is this good ?