On Wed, Apr 18, 2012 at 7:16 PM, Carsten Haitzler <ras...@rasterman.com> wrote:
> On Wed, 18 Apr 2012 19:13:18 +0800 Brian Wang <brian.wang.0...@gmail.com> 
> said:
>
>> On Wed, Apr 18, 2012 at 7:07 PM, Carsten Haitzler <ras...@rasterman.com>
>> wrote:
>> > On Wed, 18 Apr 2012 19:04:13 +0800 Brian Wang <brian.wang.0...@gmail.com>
>> > said:
>> >
>> >> On Wed, Apr 18, 2012 at 6:57 PM, Carsten Haitzler <ras...@rasterman.com>
>> >> wrote:
>> >> > On Wed, 18 Apr 2012 14:56:54 +0800 Brian Wang 
>> >> > <brian.wang.0...@gmail.com>
>> >> > said:
>> >> >
>> >> >> Hello all,
>> >> >>
>> >> >> I am not sure if this is intended.  However, it used to work.
>> >> >>
>> >> >> Case : A part with multiple states (sizes)
>> >> >> State #1 : default
>> >> >> State #2 : inherit State #1, with different size (different rel1, rel2)
>> >> >> --> State #2 seems to fail to change the rel1 and rel2 properties.
>> >> >>
>> >> >> Please see the attached edc file for the demonstration of the problem.
>> >> >>
>> >> >> Thanks in advance.
>> >> >
>> >> > works for me - white box slides up into red bar when i click... :/
>> >>
>> >> Well, that's not intended.  Check the part, "song_info_box", the
>> >> "visible,1" state changes rel2 to almost the full height.  The
>> >> expected behaviour should be "the little white box becomes a tall
>> >> box".
>> >
>> > thats not what your edc says. you make the bottom-right (rel2) part -10
>> > pixels up from the bottom of song_title... it tries to figure this out with
>> > alignment being in the middle by default... and it dissaapears. your edsc
>> > has bugs. didnty u mean to change rel1.relative: 0.5 0.0; ? instead?
>>
>> Hm... Maybe my knowledge of edc is at fault...
>> Here's the relevant part:
>>
>> description { state: "visible,1" 0.0;
>>              inherit: "default" 0.0;
>>              rel1 {
>>                 to: "song_title";
>>                 relative: 0.5 1.0;
>>                 offset: -5 0;
>>              }
>>              rel2 {
>>                 to_x: "song_title";
>>                 relative: 0.5 1.0;
>>                 offset: 5 -10;
>>              }
>>           }
>>
>> For rel2, only "to_x" is specified, therefore, I assume "to_y" is
>> relative to the full screen.  Isn't that how it is translated?
>
> u only modified to_x - to_y is still set to what it was inherited from to: 
> just
> sets both x and y. :) there is no way to UNSET them though in edc - so u'd 
> need
> another rect that is never set relative "to" anything and make it relative to
> that in y. :) i should add a way to unset it - but there never has been a
> way. :)

OK.  That clears up my problem.  Thank you a bunch. :-)

P.S. The behaviour of 'inherit' was not the same though.  I have been
using an older version of EFLand the buggy edc seems to work. :-)  Got
to go through my edc files...

cc.'ing to the list, which was forgotten..


brian

>
> --
> ------------- Codito, ergo sum - "I code, therefore I am" --------------
> The Rasterman (Carsten Haitzler)    ras...@rasterman.com
>



-- 
brian
------------------

Cool-Karaoke - The smallest recording studio, in your palm, open-sourced
http://cool-idea.com.tw/

iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to