You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by OK <po...@olafkrueger.net> on 2016/09/30 20:58:30 UTC

[FlexJS] Issue with DropDownList if it's child of org.apache.flex.core.View

Hi,
if I use org.apache.flex.core.View as root class of an outsourced sub
component that contains a DropDownList I notice that the DropDownList
doesn't show its populated items after clicking on it.
After some investigation I found that replacing the
org.apache.flex.core.View by org.apache.flex.html.Container solves this
issue.

Is it the wrong way to use org.apache.flex.core.View as root class or is
this maybe a bug?
The AS3 doc [1] sounds like using it at root class might be the right way...

Thanks,
Olaf


[1] org.apache.flex.core.View docs:
     *  The View class is the class for most views in a FlexJS
     *  application.  It is generally used as the root tag of MXML
     *  documents and UI controls and containers are added to it.







--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Issue-with-DropDownList-if-it-s-child-of-org-apache-flex-core-View-tp13695.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS] Issue with DropDownList if it's child of org.apache.flex.core.View

Posted by OK <po...@olafkrueger.net>.
Alex Harui wrote
> Hmm.  It is probably just a bug.

This is the JIRA ticket:
https://issues.apache.org/jira/browse/FLEX-35136

Thanks,
Olaf




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Issue-with-DropDownList-if-it-s-child-of-org-apache-flex-core-View-tp13695p13704.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS] Issue with DropDownList if it's child of org.apache.flex.core.View

Posted by Alex Harui <ah...@adobe.com>.
On 10/1/16, 1:40 PM, "OK" <po...@olafkrueger.net> wrote:

>Hi Alex,
>I tried to create a simple test case but unfortunately I'm not able to
>reproduce this issue for whatever reason. I'll keep it in mind and will
>hopefully find the constellation that caused the issue.
>What I've found is that I need to add a VerticalLayout bead to make the
>DropDownList work [1].
>Does this makes sense or should this bead not build-in with the
>DropDownList?

Hmm.  It is probably just a bug.

Thanks,
-Alex


Re: [FlexJS] Issue with DropDownList if it's child of org.apache.flex.core.View

Posted by OK <po...@olafkrueger.net>.
Hi Alex,
I tried to create a simple test case but unfortunately I'm not able to
reproduce this issue for whatever reason. I'll keep it in mind and will
hopefully find the constellation that caused the issue.
What I've found is that I need to add a VerticalLayout bead to make the
DropDownList work [1].
Does this makes sense or should this bead not build-in with the
DropDownList?

Thanks,
Olaf

[1] VerticalLayout required to make DropDownList work:
<<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
				xmlns:js="library://ns.apache.org/flexjs/basic">
	
	<js:valuesImpl>
		<js:SimpleCSSValuesImpl />
	</js:valuesImpl>
	
	<js:initialView>
		<js:View>
			<js:beads>
				
				<js:VerticalLayout />
			</js:beads>
			<js:DropDownList>
				<js:dataProvider>
					<fx:Array>
						<fx:String>One</fx:String>
						<fx:String>Two</fx:String>
						<fx:String>Three</fx:String>
					</fx:Array>                                    
				</js:dataProvider>
			</js:DropDownList>
		</js:View>
	</js:initialView>
</js:Application>





--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Issue-with-DropDownList-if-it-s-child-of-org-apache-flex-core-View-tp13695p13698.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: [FlexJS] Issue with DropDownList if it's child of org.apache.flex.core.View

Posted by Alex Harui <ah...@adobe.com>.
Sounds like a bug.  Please file a bug with a simple test case.

-Alex

On 9/30/16, 1:58 PM, "OK" <po...@olafkrueger.net> wrote:

>Hi,
>if I use org.apache.flex.core.View as root class of an outsourced sub
>component that contains a DropDownList I notice that the DropDownList
>doesn't show its populated items after clicking on it.
>After some investigation I found that replacing the
>org.apache.flex.core.View by org.apache.flex.html.Container solves this
>issue.
>
>Is it the wrong way to use org.apache.flex.core.View as root class or is
>this maybe a bug?
>The AS3 doc [1] sounds like using it at root class might be the right
>way...
>
>Thanks,
>Olaf
>
>
>[1] org.apache.flex.core.View docs:
>     *  The View class is the class for most views in a FlexJS
>     *  application.  It is generally used as the root tag of MXML
>     *  documents and UI controls and containers are added to it.
>
>
>
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/FlexJS-Issue-with-DropDownL
>ist-if-it-s-child-of-org-apache-flex-core-View-tp13695.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.