On Tue, Jan 24, 2012 at 8:09 PM, Tom Hacohen <[email protected]> wrote: > On 24/01/12 22:43, Rafael Antognolli wrote: >> I was still playing with the edje textblock, but couldn't make the >> style tag "valign=top" work by any method. So I checked a bit the >> code, and it seemed to me that it wasn't being used at all. > > The valign=top style is for aligning the text inside lines, you need to > use the textblock valign function or alternatively use the edje > text.align property.
Well, that worked. So we have part align, text align, and line align? And what does the text.align property do on the X axis? >> >> I could only make it work after some changes on the textblock code, >> but I am not sure that's the right way to fix it. Anyway, could you >> take a look at this patch? It should enable you to see the real >> problem... > > As I said above, fmt/c->valign are not correct in this case but > o->valign is. Additionally, the reason ">" was used and not ">=" is that > 0.0 is the default and there's no need to do all the calculations involved. Ok, makes sense. Btw, I still couldn't make the trick that I was talking to you yesterday. Using ellipsis, with the textblock size delimited by rel1 and rel2 as very small, and with a description.max: W H; text.min: 1 1; the part will grow horizontally until the max, but vertically it will grow only until it has enough space for one line, then the text is cropped (with ellipsis added at the end). Is that expected? I can send a test case if you want... -- Rafael Antognolli ProFUSION embedded systems http://profusion.mobi ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
