You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/04/21 03:22:13 UTC
[jira] [Updated] (FLEX-11930) Inproper condition for IF statement
[ https://issues.apache.org/jira/browse/FLEX-11930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-11930:
---------------------------------
Labels: easytest (was: )
> Inproper condition for IF statement
> -----------------------------------
>
> Key: FLEX-11930
> URL: https://issues.apache.org/jira/browse/FLEX-11930
> Project: Apache Flex
> Issue Type: Bug
> Components: .Unspecified - Framework
> Affects Versions: Adobe Flex SDK 3.0 (Release)
> Environment: Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easytest
>
> In file mx.containers.utilityClasses.CanvasLayout.as, the condition for an IF statement is identical to its ELSE IF statement. This causes the ELSE IF block can never be executed.
> private function applyAnchorStylesDuringUpdateDisplayList(
> availableWidth:Number,
> availableHeight:Number,
> child:IUIComponent = null):void
> {
> ...
> if (!parentBoundariesLR)
> {
> ...
> }
> else if (!parentBoundariesLR)
> {
> //The left, right or horizontalCenter style has been set to
> //a non-parent region, but no columns were declared
> message = resourceManager.getString(
> "containers", "noColumnsFound");
> throw new ConstraintError(message);
> }
>
> ...
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira