> I need the dropped taskList that is tweening to update it's width

Correction;

It dosn't matter if it IS the list that was dropped. What matters is that the height of the taskPane now fits into the Application's view area.

So this condition can happen to any of the tasklists. I will always happen to a list that is right in between fitting (Closed) and not fitting(opend). There is no problem when you open a list and the scrollbars reapear. It only happens when the scrollbars are removed.

Peace, Mike

On 7/24/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
Manish;

Here is a scrrenshot of the bug right before the effectComplete event is called. THis is right after the tween has closed the tasklist component.

http://www.flex2components.com/screenshots/tasklistfx/bugs/tasklist01.jpg

Peace, Mike

On 7/24/06, Michael Schmalle < [EMAIL PROTECTED]> wrote:
Hi Manish;

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.



--
What goes up, does come down.



--
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




__,_._,___

Reply via email to