On Sat, 24 Oct 2015 11:45:36 -0500 Jeff Hoogland <[email protected]> said:
> @Dave - you can see in my code the layout object commented out. When using > that I get the exact same results > > @Raster - I want to scale it to fit the bounds ideally. aspect: 1.77777 1.77777; aspect_preference: BOTH; example. you wont BOTH width AND height to constrain aspect ratio, so it'll choose the "smaller" one to control - thus creating a gap within the part "requested" geometry. HORIZONTAL would make the horizontal access the limter so it may or may not go out of requested geometry bounds vertically depending on width and aspect and height... VERTICAL is like horizontal for the horizontal axis and NONE is have neither be a preference and so it'll expand to whichever is bigger - thus go out of bounds of the requested geometry. for all but BOTH you may want a clipper to clip it to a region. this is what we do with wallpapers in e. when we generate the edc for the dj file we choose an aspect based on original image geom and choose one of these preferences and there is a clipper of the bg edj object itself outside of the edje object, so this emans with fill - your bg always fills the entire area even if it clips it. > On Sat, Oct 24, 2015 at 7:52 AM, Carsten Haitzler <[email protected]> > wrote: > > > On Fri, 23 Oct 2015 21:08:34 -0500 Jeff Hoogland <[email protected]> > > said: > > > > > I'm trying to display an edj object in my elementary application, but I > > > can't see to manage to get said edj object to be contained within it's > > > parent object: > > > > > > http://www.enlightenment.org/ss/e-562ae713510947.78164071.jpg > > > > > > As you can see the image overlaps the list on the left side of the > > window. > > > > > > Source I am working with is here -> > > > > > https://github.com/JeffHoogland/swami/blob/master/swami_wallpaper/swami_wallpaper.py > > > > > > The edje object is created and added to my window starting at line 136. > > > > depends what you want to do? clip it? scale to fit (so it never exceeds > > bounds) > > etc. etc. - all of this you can do. it depends on the result you want... :) > > > > -- > > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > > The Rasterman (Carsten Haitzler) [email protected] > > > > > > > -- > ~Jeff Hoogland <http://jeffhoogland.com/> > My Projects on GitHub <https://github.com/JeffHoogland> -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
