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/17 04:26:13 UTC
[jira] [Updated] (FLEX-17082) NavBar : enable property enables all
buttons, event the current view's one
[ https://issues.apache.org/jira/browse/FLEX-17082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-17082:
---------------------------------
Labels: easyfix easytest (was: )
> NavBar : enable property enables all buttons, event the current view's one
> --------------------------------------------------------------------------
>
> Key: FLEX-17082
> URL: https://issues.apache.org/jira/browse/FLEX-17082
> Project: Apache Flex
> Issue Type: Bug
> Components: MXML Components
> Affects Versions: Adobe Flex SDK 3.2 (Release)
> Environment: Affected OS(s): Windows
> Affected OS(s): Windows XP
> Language Found: English
> Reporter: Adobe JIRA
> Labels: easyfix, easytest
>
> on the navbar, the current view's button is disabled.
> set enable=false on the navbar everything is disabled
> set enabled = false on the navbar
> and all your buttons are enabled even the current.
> suggested correction in NavBar.as line 227 :
> override public function set enabled(value:Boolean):void
> {
> if (value != enabled)
> {
> super.enabled = value;
> var n:int = numChildren;
> for (var i:int = 0; i < n; i++)
> {
> if (targetStack)
> {
> Button(getChildAt(i)).enabled = value &&
> // fixed here
> targetStack.currentIndex != i &&
> // end of fix
> Container(targetStack.getChildAt(i)).enabled;
> }
> else
> {
> Button(getChildAt(i)).enabled = value;
> }
> }
> }
> }
--
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