On Thursday, August 9, 2012, Enlightenment SVN wrote:

> Log:
> sorry yoz - u cant use min size set from outside the widget as wisgets
>   set it all the time themselves for read-only use outside. :) if uw ant
>   this u have to accomplish this another way. eg table with genlist PLUS
>   invisible rect obj at the same cell spot (0, 0, 1x1). and make the
>   invisible rect have a min size hint. table takes care of using the
>   "constraints" of both rect and gnelist then for sizing. :)
>
>
I've explained a similar thing to mekius at #edevelop: some widgets will
calculate and set their min or max size based on internal contents
calculation.

But this can be a PITA. Should we have a general toggle per widget that
inhibits this? Maybe a widget "size calc" that is analogous to Edje and
just returns info to user?

One drawback of this is that user may forget to apply scale and finger
size. But many times user want to set a fixed size, based on his users or
based on information acquired from outside, like edje group min/max

Last, related to this is the elm_box behavior. With Evas layout functions
we had covered cases of no-expand, no-fill and no-both. In these cases the
original size is kept, no resize. Elementary box does not handle no-expand
and no resize cases as far as I remember, or at least in some weird case
I've experienced the other day (econnman, I've fixed setting content/icon
min/max to be used in genlist "end" icon, but maybe such problem was due
genlist end SWALLOW description)





>
>
> Author:       raster
> Date:         2012-08-09 05:12:29 -0700 (Thu, 09 Aug 2012)
> New Revision: 75044
> Trac:         http://trac.enlightenment.org/e/changeset/75044
>
> Modified:
>   trunk/elementary/src/lib/elm_genlist.c
>
> Modified: trunk/elementary/src/lib/elm_genlist.c
> ===================================================================
> --- trunk/elementary/src/lib/elm_genlist.c      2012-08-09 12:03:16 UTC
> (rev 75043)
> +++ trunk/elementary/src/lib/elm_genlist.c      2012-08-09 12:12:29 UTC
> (rev 75044)
> @@ -582,7 +582,7 @@
>
>     if (sd->on_sub_del) return;;
>
> -   evas_object_size_hint_min_get(obj, &minw, &minh);
> +   evas_object_size_hint_min_get(obj, &minw, NULL);
>     evas_object_size_hint_max_get(obj, &maxw, &maxh);
>
>     edje_object_size_min_calc(ELM_WIDGET_DATA(sd)->resize_obj, &vmw, &vmh);
> @@ -606,8 +606,7 @@
>               sd->calc_job = ecore_job_add(_calc_job, sd);
>            }
>          minw = vmw;
> -        if (minh < vmh)
> -          minh = vmh;
> +        minh = vmh;
>       }
>     else if (sd->mode == ELM_LIST_LIMIT)
>       {
> @@ -617,8 +616,7 @@
>     else
>       {
>          minw = vmw;
> -        if (minh < vmh)
> -          minh = vmh;
> +        minh = vmh;
>       }
>
>     evas_object_size_hint_min_set(obj, minw, minh);
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to