From: Hugo C. <hug...@gm...> - 2011-07-23 20:47:37
|
Well, how can you center two pieces of text "as one" then? It does not sound like a very extravagant request to me ^^ Could you force recalculating on a specific demand? On Sat, Jul 23, 2011 at 6:16 AM, Carsten Haitzler <ra...@ra...>wrote: > On Thu, 21 Jul 2011 14:58:53 +0200 Hugo Camboulive < > hug...@gm...> > said: > > basically you can't do what you are doing. once you have a group as a > child, > that child group will never have its min size recalculated after load. so > that > means programs later on wont change that. it's basically not possible to do > as > the expense of recalculating every time you do something will bring > everything > to a crawl. > > > Hi everyone, > > > > I encoutered a problem with the text.min / text.max attributes in edje, > > which (I think) are supposed to define the hints depending on the length > of > > the text itself. > > > > To center a block of 2 texts, I put two text parts in a box. > > > > It works fine with text defined in the edc (see first 2 lines in > screenshot > > included, the text is centered), but when I update the text in the > > program (third line), the objects keep the same positions. > > Maybe the hints are not updated on edje_object_part_text_set, or maybe > the > > box layout is not refreshed... I don't know :) > > > > Included is a sample program+edc and a screenshot of how it looks, I've > > heard it's the same in trunk (you may need to change the text size to 20 > or > > smaller) > > > > Regards > > > > Hugo Camboulive > > > -- > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > The Rasterman (Carsten Haitzler) ra...@ra... > > |