From: Ralph T. <ra...@gm...> - 2007-02-03 00:28:47
|
Hi List, Is there a reasonable way to extend Eve such that a view can specify an aspect ratio that it must be placed at (if it was a video or picture, for example). I'm aware of the twopass layout, but that only solves the case where the ratio is wider than it is taller. Imagine that such a ratio constrained view is center aligned horizontally and filling vertically (and imagine that it's tiny, and being scaled up because it's filling vertically). The view won't know what width to return to Eve until it knows the height that's available. The only easy way I can think of "solving" this problem is by solving vertical layout first, adjusting horizontal and the solving horizontal layout when a layout has a view that's constrained like this. Clearly this breaks down when there are two views that not both constrained in the same way (and probably some platform's paragraph layout APIs won't give you width based on height, breaking word-wrap in labels). Is there another (reasonable) way to extend Eve to support views with fixed aspect ratios? Thanks! Ralph |