I can't give an example to compile because this is in a huge component framework.
But, here is a simple example of my drag and drop lists and pane.
EXAMPLE MXML
------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:containers=" com.teotiGraphix.containers.*"
xmlns:controls="com.teotiGraphix.controls.*"
layout="vertical">
<containers:TaskPaneFX id="taskPane"
dragPosition="bottom"
dragEnabled="true"
width="50%">
<controls:TaskListFX id="taskList1"
title="List One"
dragEnabled="true"
width="100%">
<mx:List width="100%" dataProvider="{dp}"/>
</controls:TaskListFX>
<controls:TaskListFX id="taskList2"
titleStyleName="titleStyle"
title="List Two"
dragPosition="bottom"
dragEnabled="false"
width="100%">
<mx:List width="100%" dataProvider="{dp}"/>
</controls:TaskListFX>
<controls:TaskListFX id="taskList3"
title="List Three"
dragEnabled="false"
width="100%">
<mx:List width="100%" dataProvider="{dp}"/>
</controls:TaskListFX>
</containers:TaskPaneFX>
</mx:Application>
In this example,
super parent == Application
parent == taskPane
child == listOne, listTwo, listThree
new child == dropped in taskList from another taskPane
This just shows one taskPane (column), say you has another task pane that has a tasklist that your are dragging into taskPane.
If the Applications height does not fit the new height since the tasklist creates more height, we get vertical scrollbars on the Application.
Now,
These components are just like the ones in the Window's UI where you click the header button and it tweens shut. The only thing remaining in the component list is the header titleBar.
When this tween is happening, the condition happens, the 'taskPane''s height NOW FITS in the Application.
As this tween is happening, the taskPane gets it's width updated by the Application since the scrollbars are now hidden. The taskPane is now wider and all the other children (listOne, listTwo, listThree) get there widths updated EXCEPT the new list dropped in the taskPane that is currently tweening.
I need the dropped taskList that is tweening to update it's width to the new width of the taskPane AFTER it has had it's scrollbars removed during the tween.
The new list only gets it's width updated AFTER the effect has completed.
Does this make sense?
Peace, Mike
On 7/24/06, Manish Jethani <[EMAIL PROTECTED]
> wrote:
On 7/24/06, Michael Schmalle < [EMAIL PROTECTED]> wrote:
> If the parent of the child's parent has scrollbars, then as the effect is playing the parent containers scrollbar(super parents height shrinks) go away, the child that has the effect playing on it does not update it's width until the effect has finished.
I'm confused between child, parent, super parent, etc. Can you show a
simple example in code? Give everything IDs and tell us which object
is behaving how. If it's a complete example (something I can compile
and run on my own), that's even better.
--
What goes up, does come down. __._,_.___![]()
SPONSORED LINKS
Custom software development Database development software Embedded software development Offshore software development Software development Software development company
YAHOO! GROUPS LINKS
- Visit your group "flexcomponents" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
- [flexcomponents] Resize Effect :: Parent changing width d... Michael Schmalle
- Re: [flexcomponents] Resize Effect :: Parent changin... Manish Jethani
- Re: [flexcomponents] Resize Effect :: Parent cha... Michael Schmalle
- Re: [flexcomponents] Resize Effect :: Parent... Michael Schmalle
- Re: [flexcomponents] Resize Effect :: Pa... Michael Schmalle
- Re: [flexcomponents] Resize Effect :: Pa... Manish Jethani
- Re: [flexcomponents] Resize Effect ... Michael Schmalle
- Re: [flexcomponents] Resize Eff... Michael Schmalle
Reply via email to
