On Thu, 9 Aug 2012 09:43:40 -0300 Gustavo Sverzut Barbieri <barbi...@profusion.mobi> said:
> 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? umho the way to do this is have a set of "user hints" (min/max) set separately to current hints and that when calculating sizing we accoutn for both automatic size hints AND user hints. we can provide a function that does this for you in a single predictable way and thus replace all the min size hint get funcs with that. > 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) hmm no the elm box stuff does handle weight 0 fill 0.5 - the item is never expanded AND stays at min size as a result. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ 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