Hello,

I just noticed that edje has a problem regarding aspect calculation.

It seems there is a difference how aspect is defined for an image. It's
easy to demonstrate with a small example. The opposite problem shows up
if user has an image of size where width is smaller than hight.

image size: 73x50 (image width larger than height)

aspect1: 73/50 = 1.46
aspect2: 50/73 = 0.684931507

  group { name: "MenuIcon";
    data {
       item: "pref_size" "327x330";
    }
    parts {
       part { name: "Image01";
          type: IMAGE;
          description { state: "default" 0;
             aspect: 1.46 1; // this works, but not: 1 0.684931507
             aspect_preference: BOTH;
             rel2 {
                offset: 0 0;
             }
             image {
                normal: "menu_icon.png";
                middle: DEFAULT;
             }
             fill {
             }
          }
       }
    }
 }

Btw: is it possible that edje just calculates the aspect automatic in a
way that fits to image size? I didn't find out how to set this.

regards
  Andreas


-- 
Technical Blog <http://andreasvolz.wordpress.com/>

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to