Not really cheating, only let the designer what he want to do (align,
offset, ...).
The align for the box (like in evas, because edje_box == evas_box) is the
point of the balance of the object. So if you have horizontal box only the
first parameter of align field is taken into account, to know if the
objects is right aligned(0.0) or left aligned(1.0) or placed at the
middle(0.5). Same for vertical layout box, only the second parameter of the
align is taken into account and place the objects bottom, upper or in
middle. Try it :)
But the box check the size hint of each objects appended to know how to
place it into this layout.
Evas_Box and Edje_Box is low level api, if you are not happy with them use
elementary :P.

2015-04-28 21:08 GMT+02:00 Davide Andreoli <[email protected]>:

> 2015-04-28 17:08 GMT+02:00 Michaël Bouchaud <[email protected]>:
>
> > You can make a container group with 2 parts...
> > The first one fill the place and the second, who is a swallow, aligned to
> > bottom.
> > You swallow your content in this group and add this group to the box.
> >
>
> Here you are cheating :)
> The whole point of this thread is that edje seems (is?) not able to
> vertically align
> items in a box, and this should be a basic operation for a box.
>
>
>
> >
> > 2015-04-28 16:44 GMT+02:00 Wolfgang Morawetz <
> [email protected]
> > >:
> >
> > > This will make the split of designe and code useless.
> > >
> > > ---- Michaël Bouchaud schrieb ----
> > >
> > > >It isn't difficult to do it from the c code. Use the function to set
> the
> > > >size hint align to 0.5 1.0 of the objet appended.
> > > >like evas_object_size_hint_align_set(o, 0.5, 1.0); if you use the
> legacy
> > > >api.
> > > >
> > > >
> > > >2015-04-28 16:04 GMT+02:00 Davide Andreoli <[email protected]>:
> > > >
> > > >> 2015-04-28 15:39 GMT+02:00 Michaël Bouchaud <[email protected]>:
> > > >>
> > > >> > like this http://pastebin.com/PvfDxn8L
> > > >> >
> > > >> > 2015-04-28 15:37 GMT+02:00 Michaël Bouchaud <[email protected]>:
> > > >> >
> > > >> > > just add align: 0.5 1.0; in items block
> > > >> >
> > > >>
> > > >> too easy that way :P
> > > >> As I explained the box is populated from C code, not in the edc.
> > > >>
> > > >>
> > > >> > >
> > > >> > > 2015-04-28 14:45 GMT+02:00 Davide Andreoli <
> > [email protected]
> > > >:
> > > >> > >
> > > >> > >> 2015-04-28 0:32 GMT+02:00 Carsten Haitzler <
> [email protected]
> > >:
> > > >> > >>
> > > >> > >> > On Mon, 27 Apr 2015 21:47:57 +0200 Davide Andreoli <
> > > >> > >> [email protected]
> > > >> > >> > >
> > > >> > >> > said:
> > > >> > >> >
> > > >> > >> > > 2015-04-27 7:06 GMT+02:00 Carsten Haitzler <
> > > [email protected]
> > > >> >:
> > > >> > >> > >
> > > >> > >> > > > On Sun, 26 Apr 2015 20:29:38 +0200 Wolfgang Morawetz
> > > >> > >> > > > <[email protected]> said:
> > > >> > >> > > >
> > > >> > >> > > > align: 0.5 0.5;
> > > >> > >> > > >
> > > >> > >> > > > is the default in every description - try 0.5 1.0 for
> > bottom
> > > >> > >> aligned -
> > > >> > >> > > > depending what you want to align to bottom... :)
> > > >> > >> > > >
> > > >> > >> > >
> > > >> > >> > > The problem is that align for box items do not really
> works,
> > > >> > >> > > please give a look at this super simple example:
> > > >> > >> > > http://pastebin.com/dRBspmJu
> > > >> > >> > > and the result:
> > > >> > >> > >
> > http://www.enlightenment.org/ss/e-553e90974f63b7.62413817.jpg
> > > >> > >> > >
> > > >> > >> > > As you can see, only the first item is bottom-aligned,
> > because
> > > >> > >> > > of the explicit align on the item (line 36). But the second
> > > item
> > > >> > >> > > do not respect the align asked on line 27.
> > > >> > >> > >
> > > >> > >> > > This is just an example, in the real world the box is
> > populated
> > > >> from
> > > >> > >> > > the C/python code. Thus the designer is not able to choose
> > the
> > > >> > >> > > vertical alignment for the items in the box.
> > > >> > >> >
> > > >> > >> > you don't want to align the items, but align the BOX. make
> the
> > > box
> > > >> not
> > > >> > >> an
> > > >> > >> > expanded blob but a minimal sized blob vertically and then
> > align
> > > >> that.
> > > >> > >> > using
> > > >> > >> > min size of items to expand this 0 height box to the minimum
> > > size of
> > > >> > >> > items...
> > > >> > >> >
> > > >> > >>
> > > >> > >> I think I really want to align the items, not the box. Your
> > > solution
> > > >> > works
> > > >> > >> only
> > > >> > >> when items are homogeneous (same size).
> > > >> > >>
> > > >> > >> Do you have a solution for this one?
> > > >> > >> http://pastebin.com/hVBLiFxm
> > > >> > >> http://www.enlightenment.org/ss/e-553f801e21d243.51319171.jpg
> > > >> > >>
> > > >> > >> here I would like to have all the items aligned to the bottom,
> > and
> > > >> > >> remember
> > > >> > >> that it will be populated from code, so I cannot set alignment
> > for
> > > >> each
> > > >> > >> item.
> > > >> > >>
> > > >> > >> A classic example of this layout usage is the mac-style
> launcher.
> > > >> > >>
> > > >> > >>
> > > >> > >>
> > > >> > >> > > Is this a bug? An expected behavior?
> > > >> > >> > >
> > > >> > >> > > Thanks
> > > >> > >> > >
> > > >> > >> > >
> > > >> > >> > > >
> > > >> > >> > > > > Hi,
> > > >> > >> > > > > i have some trouble to align the userslist.box to the
> > > bottom.
> > > >> > >> > > > > Git source is:
> > > >> > >> > > > >
> > > >> > >>
> > > https://github.com/wfx/enter/blob/master/data/themes/enter/main.edc
> > > >> > >> > > > > It is allways centered (screenshot:
> > > >> > >> > > > >
> > > http://www.enlightenment.org/ss/e-553d22aee06ca9.61403495.jpg
> > > >> )
> > > >> > >> > > > > The edc part is at line 339:
> > > >> > >> > > > >
> > > >> > >> > > > >             part { name: "userslist"; type: SPACER;
> > > >> > >> > > > >                description { state: "default" 0.0;
> > > >> > >> > > > >                   rel1  {
> > > >> > >> > > > >                      to: "user";
> > > >> > >> > > > >                      relative: 1.0 0.0;
> > > >> > >> > > > >                      offset: 24 0;
> > > >> > >> > > > >                   }
> > > >> > >> > > > >                   rel2 {
> > > >> > >> > > > >                      to: "user";
> > > >> > >> > > > >                      relative: 1.0 (1.0 - 1.0);
> > > >> > >> > > > >                   }
> > > >> > >> > > > >                }
> > > >> > >> > > > >                description { state: "visible" 0.0;
> > > >> > >> > > > >                   rel1  {
> > > >> > >> > > > >                      to: "user";
> > > >> > >> > > > >                      relative: 1.0 0.0;
> > > >> > >> > > > >                      offset: 24 0;
> > > >> > >> > > > >                   }
> > > >> > >> > > > >                   rel2 {
> > > >> > >> > > > >                      to: "user";
> > > >> > >> > > > >                      relative: 2.0 1.0;
> > > >> > >> > > > >                   }
> > > >> > >> > > > >                }
> > > >> > >> > > > >                part { name: "userslist.box"; /* API */
> > > >> > >> > > > >                   type: BOX;
> > > >> > >> > > > >                   description { state: "default" 0.0;
> > > >> > >> > > > >                      box {
> > > >> > >> > > > >                         layout: "horizontal";
> > > >> > >> > > > >                         align: 0.0 0.0;
> > > >> > >> > > > >                         padding: 24 0;
> > > >> > >> > > > >                      }
> > > >> > >> > > > >                   }
> > > >> > >> > > > >                }
> > > >> > >> > > > >
> > > >> > >> > > > > Thanks
> > > >> > >> > > > > wfx
> > > >> > >> > > > >
> > > >> > >> > > >
> > > >> > >> >
> > > >> > >>
> > > >> >
> > > >>
> > >
> >
> ------------------------------------------------------------------------------
> > > >> > >> > > > > One dashboard for servers and applications across
> > > >> > >> > Physical-Virtual-Cloud
> > > >> > >> > > > > Widest out-of-the-box monitoring support with 50+
> > > applications
> > > >> > >> > > > > Performance metrics, stats and reports that give you
> > > >> Actionable
> > > >> > >> > Insights
> > > >> > >> > > > > Deep dive visibility with transaction tracing using APM
> > > >> Insight.
> > > >> > >> > > > >
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >> > >> > > > > _______________________________________________
> > > >> > >> > > > > enlightenment-devel mailing list
> > > >> > >> > > > > [email protected]
> > > >> > >> > > > >
> > > >> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >> > >> > > > >
> > > >> > >> > > >
> > > >> > >> > > >
> > > >> > >> > > > --
> > > >> > >> > > > ------------- Codito, ergo sum - "I code, therefore I am"
> > > >> > >> > --------------
> > > >> > >> > > > The Rasterman (Carsten Haitzler)    [email protected]
> > > >> > >> > > >
> > > >> > >> > > >
> > > >> > >> > > >
> > > >> > >> > > >
> > > >> > >> >
> > > >> > >>
> > > >> >
> > > >>
> > >
> >
> ------------------------------------------------------------------------------
> > > >> > >> > > > One dashboard for servers and applications across
> > > >> > >> > Physical-Virtual-Cloud
> > > >> > >> > > > Widest out-of-the-box monitoring support with 50+
> > > applications
> > > >> > >> > > > Performance metrics, stats and reports that give you
> > > Actionable
> > > >> > >> > Insights
> > > >> > >> > > > Deep dive visibility with transaction tracing using APM
> > > Insight.
> > > >> > >> > > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >> > >> > > > _______________________________________________
> > > >> > >> > > > enlightenment-devel mailing list
> > > >> > >> > > > [email protected]
> > > >> > >> > > >
> > > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >> > >> > > >
> > > >> > >> > >
> > > >> > >> >
> > > >> > >>
> > > >> >
> > > >>
> > >
> >
> ------------------------------------------------------------------------------
> > > >> > >> > > One dashboard for servers and applications across
> > > >> > >> Physical-Virtual-Cloud
> > > >> > >> > > Widest out-of-the-box monitoring support with 50+
> > applications
> > > >> > >> > > Performance metrics, stats and reports that give you
> > Actionable
> > > >> > >> Insights
> > > >> > >> > > Deep dive visibility with transaction tracing using APM
> > > Insight.
> > > >> > >> > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >> > >> > > _______________________________________________
> > > >> > >> > > enlightenment-devel mailing list
> > > >> > >> > > [email protected]
> > > >> > >> > >
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >> > >> > >
> > > >> > >> >
> > > >> > >> >
> > > >> > >> > --
> > > >> > >> > ------------- Codito, ergo sum - "I code, therefore I am"
> > > >> > --------------
> > > >> > >> > The Rasterman (Carsten Haitzler)    [email protected]
> > > >> > >> >
> > > >> > >> >
> > > >> > >>
> > > >> > >>
> > > >> >
> > > >>
> > >
> >
> ------------------------------------------------------------------------------
> > > >> > >> One dashboard for servers and applications across
> > > >> Physical-Virtual-Cloud
> > > >> > >> Widest out-of-the-box monitoring support with 50+ applications
> > > >> > >> Performance metrics, stats and reports that give you Actionable
> > > >> Insights
> > > >> > >> Deep dive visibility with transaction tracing using APM
> Insight.
> > > >> > >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >> > >> _______________________________________________
> > > >> > >> enlightenment-devel mailing list
> > > >> > >> [email protected]
> > > >> > >>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >> > >>
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > > --
> > > >> > > Michaël Bouchaud (yoz) <[email protected]>
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Michaël Bouchaud (yoz) <[email protected]>
> > > >> >
> > > >> >
> > > >>
> > >
> >
> ------------------------------------------------------------------------------
> > > >> > One dashboard for servers and applications across
> > > Physical-Virtual-Cloud
> > > >> > Widest out-of-the-box monitoring support with 50+ applications
> > > >> > Performance metrics, stats and reports that give you Actionable
> > > Insights
> > > >> > Deep dive visibility with transaction tracing using APM Insight.
> > > >> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >> > _______________________________________________
> > > >> > enlightenment-devel mailing list
> > > >> > [email protected]
> > > >> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >> >
> > > >>
> > > >>
> > >
> >
> ------------------------------------------------------------------------------
> > > >> One dashboard for servers and applications across
> > Physical-Virtual-Cloud
> > > >> Widest out-of-the-box monitoring support with 50+ applications
> > > >> Performance metrics, stats and reports that give you Actionable
> > Insights
> > > >> Deep dive visibility with transaction tracing using APM Insight.
> > > >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >> _______________________________________________
> > > >> enlightenment-devel mailing list
> > > >> [email protected]
> > > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > > >>
> > > >
> > > >
> > > >
> > > >--
> > > >Michaël Bouchaud (yoz) <[email protected]>
> > >
> > >
> >
> >------------------------------------------------------------------------------
> > > >One dashboard for servers and applications across
> Physical-Virtual-Cloud
> > > >Widest out-of-the-box monitoring support with 50+ applications
> > > >Performance metrics, stats and reports that give you Actionable
> Insights
> > > >Deep dive visibility with transaction tracing using APM Insight.
> > > >http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > >_______________________________________________
> > > >enlightenment-devel mailing list
> > > >[email protected]
> > > >https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > One dashboard for servers and applications across
> Physical-Virtual-Cloud
> > > Widest out-of-the-box monitoring support with 50+ applications
> > > Performance metrics, stats and reports that give you Actionable
> Insights
> > > Deep dive visibility with transaction tracing using APM Insight.
> > > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > > _______________________________________________
> > > enlightenment-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> > >
> >
> >
> >
> > --
> > Michaël Bouchaud (yoz) <[email protected]>
> >
> >
> ------------------------------------------------------------------------------
> > One dashboard for servers and applications across Physical-Virtual-Cloud
> > Widest out-of-the-box monitoring support with 50+ applications
> > Performance metrics, stats and reports that give you Actionable Insights
> > Deep dive visibility with transaction tracing using APM Insight.
> > http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> > _______________________________________________
> > enlightenment-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
> >
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> enlightenment-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>



-- 
Michaël Bouchaud (yoz) <[email protected]>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to