incubator-flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxime Cowez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33293) Prompt not displayed when component is inside a PopUpAnchor
Date Tue, 11 Dec 2012 16:07:21 GMT

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

Maxime Cowez commented on FLEX-33293:
-------------------------------------

I found another workaround which may be more suitable when using complex components inside
PopUpAnchor (it's definitly easier):

    <s:PopUpAnchor displayPopUp="true">
        <custom:PopPanel/>
    </s:PopUpAnchor>

With PopPanel implementing `IFocusManagerContainer` and returning the Application's `focusManager`:

public class PopPanel extends SkinnableComponent implements IFocusManagerContainer {

    ....

    override public function get focusManager():IFocusManager {
        return FlexGlobals.topLevelApplication.focusManager;
    }

    public function get defaultButton():IFlexDisplayObject {
        return null;
    }

    public function set defaultButton(value:IFlexDisplayObject):void {
    }
    
    ...

}
                
> Prompt not displayed when component is inside a PopUpAnchor
> -----------------------------------------------------------
>
>                 Key: FLEX-33293
>                 URL: https://issues.apache.org/jira/browse/FLEX-33293
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: ComboBox, Spark: PopUpAnchor, Spark: TextArea, Spark: TextInput
>    Affects Versions: Apache Flex 4.8 (parity release)
>            Reporter: Maxime Cowez
>            Priority: Minor
>
> When you use an input component that has a `prompt` property in combination with a PopUpAnchor,
the prompt text is never displayed.
> Easily reproduced:
>     <s:PopUpAnchor displayPopUp="true">
>         <s:VGroup>
>             <s:TextInput prompt="test prompt in PopupAnchor"/>
>             <s:ComboBox prompt="test prompt in PopupAnchor"/>
>             <s:TextArea prompt="test prompt in PopupAnchor"/>
>         </s:VGroup>
>     </s:PopUpAnchor>
> "test prompt in PopupAnchor" is not displayed in any of the components.
> The bug does not affect DropDownList though; so basically it seems to affect only those
components that inherit from or compose a SkinnableTextBase.

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

Mime
View raw message