Yes. There is a lot to be said for your approach of using strictly classes for assigning layouts using CSS.
It prevents a lot of the reflowing problems. I’m interested in seeing how far you can get with it. :-) Harbs > On Jun 6, 2018, at 10:58 AM, Carlos Rovira <carlosrov...@apache.org> wrote: > > Hi Yishay, > maybe mixing topics, but I only showing how I'm solving in jewel layouts. > Why I'm creating new layouts? since I see many problems with mixing layout > types (display: block, in other cases flex...), and seems inconsistent, so > I'm trying to base all in Jewel in only one system. Flexbox is not the best > (I think Grid would be better), but is supported in IE11, so is the middle > point right now. > A secondary motive was to get rid of JS loops or processing when possible, > since layout and positioning nowadays is done completely in CSS, so Jewel > layout has (for now), SWF code like in basic (can change when I reach to > focus more on SWF part), but JS is turning to use only CSS class selectors, > so the browsers handle all positioning. The work is still in progress, for > now I get IE11 working again and things positioning right in all browsers, > that is by itself a huge improvement over the jewel layout classes that we > had some days ago. As Harbs said a collateral effect of all of this (but > not a main one) is that we should end with "styles" set in HTML, or at > least only use that if we want to make some dynamic change at runtime. > > > 2018-06-06 7:52 GMT+02:00 Yishay Weiss <yishayj...@hotmail.com>: > >> Ok, but why does that get in the way of ‘flex’ and other display/layout >> styles? >> >> >> >> ________________________________ >> From: Alex Harui <aha...@adobe.com.INVALID> >> Sent: Tuesday, June 5, 2018 7:53:51 PM >> To: dev@royale.apache.org >> Subject: Re: [royale-asjs] branch develop updated: Fixes #258. But is that >> a proper fix? >> >> If you look at the DOM generated back then, every tag had >> "style="position:relative" on it. >> >> -Alex >> >> On 6/4/18, 11:53 PM, "yishayw" <yishayj...@hotmail.com> wrote: >> >> Alex Harui-2 wrote >>> UIBase used to set position=relative on all positioners. We took >> that >>> away so that the "flex" and other display/layout styles would not >> have to >>> deal with the excess clutter and overhead of having set position on >> so >>> many elements in the DOM. >> >> Can you give an example of excess clutter caused by this? >> >> >> >> >> -- >> Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A% >> 2F%2Fapache-royale-development.20373.n8.nabble.com%2F&data= >> 02%7C01%7Caharui%40adobe.com%7Cfe016d3a8a054079c23908d5cab10 >> 05c%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C63663778392 >> 0590036&sdata=mEUKysH2%2FsT4PtSe4ntWlFSZoz3B35zTEs3cJN288yE%3D&reserved=0 >> >> >> > > > -- > Carlos Rovira > http://about.me/carlosrovira