Re: [FlexJS]TileLayout

2017-07-24 Thread Harbs
Already fixed. :-) > On Jul 25, 2017, at 12:47 AM, Alex Harui wrote: > > I thought the goal was to approximate what regular Flex TileLayout did. > The fact that TileLayout uses flexbox under the covers is an > implementation detail. IMO, Flex TileLayout behavior would

Re: [FlexJS]TileLayout

2017-07-24 Thread Alex Harui
I thought the goal was to approximate what regular Flex TileLayout did. The fact that TileLayout uses flexbox under the covers is an implementation detail. IMO, Flex TileLayout behavior would be the default TileLayout to simplify migration and other options would have longer names. No matter

Re: [FlexJS]TileLayout

2017-07-24 Thread Peter Ent
I just left things as open as possible as I recall. Thanks Harbs. On 7/23/17, 6:06 AM, "Harbs" wrote: >Agreed, but I think the defaults should match Flash between and HTML. > >He did not set stretch. Nothing was set. ³stretch² is the default css. > >> On Jul 23, 2017, at

Re: [FlexJS]TileLayout

2017-07-23 Thread Harbs
Agreed, but I think the defaults should match Flash between and HTML. He did not set stretch. Nothing was set. “stretch” is the default css. > On Jul 23, 2017, at 12:23 PM, Alex Harui wrote: > > There doesn't have to be one TileLayout. There can be >

Re: [FlexJS]TileLayout

2017-07-23 Thread Alex Harui
There doesn't have to be one TileLayout. There can be TileLayoutWithFlexStart, TileLayoutWithStretch, and TileLayoutWithAlignContent with a property that allows you to set it. Peter may remember why he chose "stretch". -Alex On 7/23/17, 1:28 AM, "Harbs" wrote: >I just

Re: [FlexJS] TileLayout

2017-06-22 Thread Alex Harui
In these situations (assuming I understand the problem), the first consideration is "what does the browser do?". So if I take a bunch of divs, give them explicit sizes and give them margins do you get what you expect/want? There are some funny rules on how margins work in CSS in the browser, so

RE: [FlexJS] TileLayout

2017-06-22 Thread Yishay Weiss
functionality without gaps good enough? From: piotrz<mailto:piotrzarzyck...@gmail.com> Sent: Thursday, June 22, 2017 6:13 PM To: dev@flex.apache.org<mailto:dev@flex.apache.org> Subject: Re: [FlexJS] TileLayout Hi Yishay, I think Josh wrote some bead - not sure whether it is related to your p

Re: [FlexJS] TileLayout

2017-06-22 Thread piotrz
Hi Yishay, I think Josh wrote some bead - not sure whether it is related to your problem [1][2] [1] https://github.com/apache/flex-asjs/blob/release0.8.0/frameworks/projects/Basic/src/main/flex/org/apache/flex/html/beads/layouts/HorizontalLayoutWithPaddingAndGap.as [2]

Re: [FlexJS] TileLayout

2017-06-22 Thread Peter Ent
You could write a new TileLayoutWithGapAndPadding to handle that specific situation. On the JS side, TileLayout uses Flexbox and perhaps you need more control. ‹peter On 6/22/17, 10:14 AM, "yishayw" wrote: >Adding margins adds a gutter on the right side of the host.

Re: [FlexJS] TileLayout

2017-06-22 Thread yishayw
Adding margins adds a gutter on the right side of the host. This is probably because each child's width is calculated according to the parent's width divided by the number of children, disregarding the margins. I'm using padding instead, but that has the drawback that in a tiled list, for example,

Re: [FlexJS] TileLayout

2017-06-22 Thread Peter Ent
Hi, Use margins on the items. ‹peter On 6/22/17, 9:48 AM, "yishayw" wrote: >What is the preferred way to set gaps between columns and between rows? > > > >-- >View this message in context: >https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle