flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34383) RTE when removing SkinnableContainer with skinDestructionPolicy "auto" and skin with VGroup or HGroup as the "contentGroup"
Date Thu, 26 Jun 2014 07:15:26 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14044409#comment-14044409
] 

Alex Harui commented on FLEX-34383:
-----------------------------------

Mihai, you have earned committer privileges.  You can now just check in code instead of posting
patches.  We will review the changes on commits@.  Give it a try to make sure your accounts
are working.  Please try to get set up on Mustella as well so you can claim you have run at
least some regression tests, and include the hash of the commit in the JIRA issue.


> RTE when removing SkinnableContainer with skinDestructionPolicy "auto" and skin with
VGroup or HGroup as the "contentGroup"
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-34383
>                 URL: https://issues.apache.org/jira/browse/FLEX-34383
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: SkinnableContainer
>    Affects Versions: Apache Flex 4.12.1
>            Reporter: Mihai Chira
>         Attachments: FLEX-34383.patch, _removeSkinnableWithVGroup.fxp
>
>
> *Steps to reproduce*:
> # Import and run the attached project.
> # Press the button.
> *Actual behaviour*: The application throws the RTE below.
> *Desired behaviour*: The "container" component is simply removed from stage, with no
RTE.
> *Notes*:
> * the only change I made to the default SkinnableContainerSkin in EmptyContainerSkin.mxml
is the use of VGroup (or HGroup) as the "contentGroup", instead of the standard Group.
> * there are a few potential solutions, of course. I'm leaning toward preventing SkinnableContainer.partRemoved()
from clearing the old contentGroup's layout (not sure why it does it; no useful blame info
in git), as it doesn't look necessary. Patch attached.
> Error: You are not allowed to change the layout for this class.  It is read-only.
> 	at spark.components::VGroup/set layout()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/VGroup.as:533]
> 	at spark.components::SkinnableContainer/partRemoved()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/SkinnableContainer.as:1049]
> 	at spark.components.supportClasses::SkinnableComponent/clearSkinParts()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as:779]
> 	at spark.components.supportClasses::SkinnableComponent/detachSkin()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as:813]
> 	at spark.components.supportClasses::SkinnableComponent/removedFromStageHandler()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableComponent.as:1132]
> 	at flash.display::DisplayObjectContainer/removeChild()
> 	at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/core/UIComponent.as:7365]
> 	at mx.core::UIComponent/removeChild()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/framework/src/mx/core/UIComponent.as:7272]
> 	at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementRemoved()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/Group.as:1758]
> 	at spark.components::Group/removeElementAt()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/Group.as:1505]
> 	at spark.components::Group/removeElement()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/Group.as:1483]
> 	at spark.components::SkinnableContainer/removeElement()[/Users/aharui/flex-sdk-4.12.1/frameworks/projects/spark/src/spark/components/SkinnableContainer.as:805]
> 	at _main/button1_clickHandler()[C:\Users\mihaichira\workspace\_removeSkinnableWithVGroup\src\_main.mxml:20]
> 	at _main/____main_Button1_click()[C:\Users\mihaichira\workspace\_removeSkinnableWithVGroup\src\_main.mxml:26]



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message