On 4/22/16 7:33 AM, Werner Thie wrote:
> Thank you so much, but the idea is to have the SVG maxing the drawing
> area like other elements do without resorting to listeners.
>
> What irks me is the problem, that an image in a container imposes on its
> parent, which is contrary to the behavior of other elements, as it can
> be easily seen by adding a button or a text area instead of an image.
>
> http://tinyurl.com/zvmnxuy
>
> I faintly remember when I believe it was thron revamped the image class
> slightly that such a feat would be possible. I wouldn't mind having two
> distinct Image classes available, one with the old behavior and the
> other one behaving as a 'normal' container.
>
> Werner

Answering my own post for the sake of completeness:

http://tinyurl.com/zwp9zj4

I decided to dig into the layout code and found my solution:

- the imposing part is handled by straddling the _computeSizeHint() function

- the resizing part then is handled by the renderLayout() function, 
which simply sets the child size to the available width/height. The SVG 
image retains its aspect ratio, leading to a nicely scaling image in the 
drawing area.

Thxs for listening, Werner



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to