Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Tooltip

2016-12-02 Thread piotrz
I'm ok with referenceNode.parentNode.insertBefore(newNode, referenceNode.nextSibling); But still additionally have to have on our host component set up some id and inside Tooltip fill "for". I think we should whenever we can create things in "Flex" or "FlexJS" way - To give possibility for de

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Alex Harui
What does your code look like? Sounds like DataItemRenderers are still being created and added. I think the display: block is from VerticalLayout. It uses that to tell the browser to lay things out vertically. position: relative might also come from the layout or some container logic as we've s

Re: [FlexJS] Unexpected TextButton word wrapping

2016-12-02 Thread Alex Harui
Sounds ok to me. We are using nowrap on Label already. On 12/2/16, 4:22 PM, "Josh Tynjala" wrote: >I noticed that the default behavior for a TextButton is kind of weird. >Depending on how long the text is and how large the font size, it starts >wrapping to the next line for no particular reason

Re: Snippets for FlexJS

2016-12-02 Thread Alex Harui
On 12/2/16, 5:07 PM, "Christian Gotschim" wrote: > >I guess for something where I can read the most common properties >and styles from. Let’s take the org.apache.flex.html.Button.json: it lists >only the constructor and the click event. But I still don’t know how >to (or if I can) set x and y,

Re: Snippets for FlexJS

2016-12-02 Thread Christian Gotschim
I guess for something where I can read the most common properties and styles from. Let’s take the org.apache.flex.html.Button.json: it lists only the constructor and the click event. But I still don’t know how to (or if I can) set x and y, or if it got left-right-top-bottom, or width/height to na

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Carlos Rovira
One more thing, Where come from the 8px width in List? The styles in items are as well suspicious 2016-12-03 1:37 GMT+01:00 Carlos Rovira : > Hi, > > just integrate the new List component and beads in MDL. As I changed it > and introduced a custom item renderer (called > itemRenderers/ListItemR

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Carlos Rovira
Hi, just integrate the new List component and beads in MDL. As I changed it and introduced a custom item renderer (called itemRenderers/ListItemRenderer.as) in MDLExample (that is what people will do), I found a strange behaviour. The custom IR is running since I put a trace statement and I see on

[FlexJS] Unexpected TextButton word wrapping

2016-12-02 Thread Josh Tynjala
I noticed that the default behavior for a TextButton is kind of weird. Depending on how long the text is and how large the font size, it starts wrapping to the next line for no particular reason. You don't even need to set the width or max-width. This doesn't look great, and I found it unintuitive.

Re: [1/2] git commit: [flex-asjs] [refs/heads/develop] - SliderTrackView: ignore coercion of WrappedHTMLElement

2016-12-02 Thread Alex Harui
On 12/2/16, 4:10 PM, "Josh Tynjala" wrote: >Someone just mentioned to me that the Basic project no longer gets built, >and I guess that I need to make changes to a different project. Is it HTML >now? Maybe we should remove the Basic project code to avoid confusion, and >if anything needs to be

Re: Snippets for FlexJS

2016-12-02 Thread Alex Harui
On 12/2/16, 2:14 PM, "Christian Gotschim" wrote: >OK, got the zip and looking at it. At first glance not really what I was >hoping for, but I’ll see. What were you hoping for? -Alex

Re: [1/2] git commit: [flex-asjs] [refs/heads/develop] - SliderTrackView: ignore coercion of WrappedHTMLElement

2016-12-02 Thread Josh Tynjala
Someone just mentioned to me that the Basic project no longer gets built, and I guess that I need to make changes to a different project. Is it HTML now? Maybe we should remove the Basic project code to avoid confusion, and if anything needs to be restored later, we can find it in the history. - J

Re: [FlexJS] Slider valueChange not working

2016-12-02 Thread Carlos Rovira
I'd want to bring this again since I think it passed unnoticed. I think SliderView was never used and if you try to put in place it gives lots of errors. Hope Alex or Peter could take a look since I'll need it to continue work on MDL Slider. Thanks 2016-12-01 18:40 GMT+01:00 Carlos Rovira : >

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Tooltip

2016-12-02 Thread Carlos Rovira
Hi, just committed the properties left in Tooltip. I think as well it could be converted to a bead. I will go now with the List example Peter did, so feel free to change Tooltip to a bead if you want thanks! 2016-12-02 23:10 GMT+01:00 OmPrakash Muppirala : > That's an interesting suggestion. I

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Carlos Rovira
Hi Peter, so cool! I just created the pom.xml and fill the licenses to build with maven. Run the example and check the code. I still eating that food to be able to comment, but seems what I expect :) So many thanks, I'll be playing with it in the following days to apply to MDL components I think

Re: Snippets for FlexJS

2016-12-02 Thread Christian Gotschim
OK, got the zip and looking at it. At first glance not really what I was hoping for, but I’ll see. - Christian > On Dec 2, 2016, at 6:53 PM, Alex Harui wrote: > > > > On 12/1/16, 10:41 PM, "Christian Gotschim" wrote: > >> >>> If you know Java, you could write a custom ASDoc emitter. I'

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Tooltip

2016-12-02 Thread OmPrakash Muppirala
That's an interesting suggestion. In Flex or even html, we specify a 'tooltip' attribute or 'title' attribute. MDL makes it a bit more complicated by treating the component and the tooltip as different entities and then inventing a new way to connect them. Specifying it as a bead seems like the

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Tooltip

2016-12-02 Thread Carlos Rovira
I though on it too, but in MDL they created a separate div that relates to the target component by id. For that reason I follow the most natural path that is separate. If not I think we could make a bead, but then instead of "append" to target it should be write "nextto". I search a bit and I think

Re: [FlexJS] Team Page

2016-12-02 Thread Carlos Rovira
@Peter So cool to see that online! great! :) @Om, MDL Card component (and sub comps are ready to use, so I encourage you to use it and report your experience :)). If you need something I can help. Look to Cards.mxml in MDLExample to see how to use Cards in FlexJS. 2016-12-02 20:54 GMT+01:00 OmP

Re: [FlexJS] Unclear exception when valuesImpl is not set in

2016-12-02 Thread Alex Harui
On 12/2/16, 1:32 PM, "Josh Tynjala" wrote: >I'm trying to write some better beginner docs for FlexJS components this >afternoon. I don't actually have any time to do this, but it absolutely >needs to be done for the good of FlexJS so I'll try to get something >started. Anyway, as a semi-beginne

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Alex Harui
This seems mostly right to me. The top-level component is aggregating the interfaces onto itself. More inline... On 12/2/16, 12:41 PM, "Peter Ent" wrote: > >GenericListView does not extend ListView because that leads to this >nesting business we are trying to avoid. Instead, it just extends >Be

[FlexJS] Unclear exception when valuesImpl is not set in

2016-12-02 Thread Josh Tynjala
I'm trying to write some better beginner docs for FlexJS components this afternoon. I don't actually have any time to do this, but it absolutely needs to be done for the good of FlexJS so I'll try to get something started. Anyway, as a semi-beginner with the framework, I'm paying close attention to

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Peter Ent
I've checked in a new example: flex-asjs/examples/flexjs/ListExample. Let me know if this is close to what you are looking for. —peter On 12/2/16, 3:41 PM, "Peter Ent" wrote: >I have something working now. It took a bit more doing than I'd like, but >it is relatively clean. I have to create a n

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Peter Ent
I have something working now. It took a bit more doing than I'd like, but it is relatively clean. I have to create a new example for this or add it to an existing example. But here is the overview: I created a new component called GenericList (since SimpleList is already taken). On the SWF side th

Re: git commit: [flex-asjs] [refs/heads/develop] - MDL Tooltip

2016-12-02 Thread Piotr Zarzycki
Hi Carlos, Maybe Tooltip should be a Bead ? Just my first thought when I saw how example look like. Piotr 2016-12-02 15:46 GMT+01:00 : > Repository: flex-asjs > Updated Branches: > refs/heads/develop 5aebf86cb -> 4e7c7361d > > > MDL Tooltip > > > Project: http://git-wip-us.apache.org/repos/as

Re: [FlexJS] Team Page

2016-12-02 Thread OmPrakash Muppirala
Looks great! Eating our own dog food :-) BTW, this looks like a great use case for an MDL-Card component [1] as a container for each team member. If no one gets to it before me, I will take a shot at it! [1] https://getmdl.io/components/#cards-section Regards, Om On Fri, Dec 2, 2016 at 10:56

[FlexJS] Team Page

2016-12-02 Thread Peter Ent
Hi, If you go to: http://flex.apache.org/team/ you'll see a Flex Team page created using FlexJS. Still needs a bit more styling and polish. This is driven by a JSON file. Take a look and let me know your thoughts. The code is in flex-asjs/examples/flexjs/TeamPage. Peter Ent Adobe Systems/Apac

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Alex Harui
On 12/2/16, 9:59 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >> >> >> I'm not sure we have a way to manage random JS files in the tool chain. >> JS files that use goog.provide can be included in a SWC and will be >>copied >> to the output folder by the compiler. So you may

Re: AW: [FALCONJX] Combining SWF and JS compilers (was Re: AW: [FalconJX][FlexJS] COMPJSC and Build order)

2016-12-02 Thread Alex Harui
I'm about to start working on this. I haven't actually tried anything yet, but my thinking is that there are some interesting issues regarding configuration. Typically, when compiling an application, you define a bunch of compiler options, but for a compilation that should produce two different o

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Carlos Rovira
> > > I'm not sure we have a way to manage random JS files in the tool chain. > JS files that use goog.provide can be included in a SWC and will be copied > to the output folder by the compiler. So you may want to consider adding > some sort of goog.provide to that file. interesting. Some exampl

Re: Snippets for FlexJS

2016-12-02 Thread Alex Harui
On 12/1/16, 10:41 PM, "Christian Gotschim" wrote: > >> If you know Java, you could write a custom ASDoc emitter. I've written >> one that outputs ASDoc information in JSON format. Or you could write a >> Flex or FlexJS app to read the JSON files and generate the MXML you >>want. > >I don’t kn

Re: [FlexJS] get rid of inline styles (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Carlos Rovira
Hi Josh, right. As I get some few components more, I think I could refactor removing the dependencies from some HTML comps so we could manage better MDL set. So for example, I will took things from Core, like UIBase or ContainerBase while removing html things like TextButton, Container and so on..

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Carlos Rovira
excelent Peter! I'll be waiting for this :) 2016-12-02 15:47 GMT+01:00 Peter Ent : > I will be looking into this, this morning (shortly). Just for background: > > The ListView creates two things: an outer containment area (div) to house > the chrome (scroll bars, title bars, footer bars, etc) and

Re: Using source class instead of compiled swc

2016-12-02 Thread Alex Harui
On 12/2/16, 8:49 AM, "sankar" wrote: >Can I use supplied source class in FlexJS SDK instead from the compiled >"swc"? For an example, > >If I want to access *SimpleBinding* API resides at >/\frameworks\projects\Binding\src\main\flex\org\apache\flex\binding\S >impleBinding.as/ >instead from /\fr

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Alex Harui
On 12/2/16, 4:02 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" wrote: >Ok, so as we can add to our project, I will upload. I think is more safe. I'm not sure we have a way to manage random JS files in the tool chain. JS files that use goog.provide can be included in a SWC and will b

Using source class instead of compiled swc

2016-12-02 Thread sankar
Can I use supplied source class in FlexJS SDK instead from the compiled "swc"? For an example, If I want to access *SimpleBinding* API resides at /\frameworks\projects\Binding\src\main\flex\org\apache\flex\binding\SimpleBinding.as/ instead from /\frameworks\libs\Binding.swc/, is that possible some

Re: Snippets for FlexJS

2016-12-02 Thread Josh Tynjala
This just goes to show again that we need a dedicated page for each of the Basic components with simple examples of the component's most common tasks. Set the text on a button, and listen for some kind of click/tap event. Populate a list's data provider, listen for a selection change event, and cha

Re: [FlexJS] get rid of inline styles (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Josh Tynjala
Alex's first point about using the same beads, but not subclassing sounds cleaner to me, Carlos. Kind of the same idea from the other day where all components should be possible to recreate from UIBase with the right set of beads. You should consider trying that out for MDL. - Josh On Dec 1, 2016

Re: [FlexJS] (Att: Peter Ent) Get rid of extra divs layers we don't want (was Re: [FlexJS]Layout problems)

2016-12-02 Thread Peter Ent
I will be looking into this, this morning (shortly). Just for background: The ListView creates two things: an outer containment area (div) to house the chrome (scroll bars, title bars, footer bars, etc) and the content area (ContainerContentArea). When we first set this up, the JS side wasn't sup

Re: [FlexJS] last git code doesn't work as of 2016 NOV 29,

2016-12-02 Thread Pan Li
Hi Alex I think the javascript runtime issues happened to us again, I don't have more time to test it fully now, but it seems to happen when I didn't removed old files before rebuilding. I didn't see this in 0.7. I will test more later and send you my result if I find something. My Apache Flex

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Carlos Rovira
Ok, so as we can add to our project, I will upload. I think is more safe. Thanks Justin! :) 2016-12-02 12:08 GMT+01:00 Justin Mclean : > Hi, > > > so this mean I can bundle (upload to our project *git*) > > You only need to do that if i'st bundled in the release. > > > or better link to CDN JS (

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Justin Mclean
Hi, > so this mean I can bundle (upload to our project *git*) You only need to do that if i'st bundled in the release. > or better link to CDN JS (don't know reliability of this) If you do this then it's not bundled so there no need to do anything to LICENSE. The downside as you say the CDN ma

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Carlos Rovira
Thanks Justin, so this mean I can bundle (upload to our project *git*) or better link to CDN JS (don't know reliability of this) 2016-12-02 11:28 GMT+01:00 Justin Mclean : > Hi, > > > I'm finding that MDL Dialog is based on dialog-polyfill: > > > > https://github.com/GoogleChrome/dialog-polyfil

Re: [FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Justin Mclean
Hi, > I'm finding that MDL Dialog is based on dialog-polyfill: > > https://github.com/GoogleChrome/dialog-polyfill > https://github.com/GoogleChrome/dialog-polyfill/blob/master/LICENSE > > how should we manage this (taking account of the license)? It’s 3 clause BSD which is compatible, recommen

[FlexJS] dialog-polypfill third party JS

2016-12-02 Thread Carlos Rovira
Hi, I'm finding that MDL Dialog is based on dialog-polyfill: https://github.com/GoogleChrome/dialog-polyfill https://github.com/GoogleChrome/dialog-polyfill/blob/master/LICENSE how should we manage this (taking account of the license)? I could link as I'm doing with MDL to a hosted CDN here: ht

Re: git commit: [flex-asjs] [refs/heads/develop] - - Add first Material Icons beads "cancel" and "add" - Use "add' material icon bead in Buttons example - Add missing classList - Throw error Deletable

2016-12-02 Thread Carlos Rovira
As I saw is common for all, for that reason I think we could have a Base Class with that common properties that rest off icons will inherit. If not you will end replicating in all material icon classes ;) 2016-12-02 7:04 GMT+01:00 piotrz : > One question - does "md-48" is something what can you p