Hi Marco,

        There was a bug in the case where recenterOnResize was set to false
that caused it to not include the updated viewing transform.  This is now fixed
in SVN.

        Thomas

On May 11, 2012, at 4:31 AM, m...@mherrn.de wrote:

> Hi,
> 
>>> The example application and SVG file are attached to this mail.
>> 
>>      I didn't see them show up as attachments.
> 
> Damn. I forgot the attachments....
> Included in this mail now. :-)
> 
>>> When the application starts, the image is always displayed as expected.
>>> But when extending the width of the window, the image starts beginning
>>> to
>>> move out of the canvas on the top. Addionally when lowering the width of
>>> the window, the image starts to move down inside the canvas (not staying
>>> in the top left corner).
>> 
>>      Do you have 'recenterOnResize' enabled?  That might react badly to your
>> reimplementation of calculateViewingTransform.
> 
> Yes, recenterOnResize was enabled. But if I set recenterOnResize=false,
> nothing gets scaled at all! (And I don't know why. It seems I really have
> to view through some implementation details in JSVGCanvas.)
> 
>>> 2. What am I doing wrong here (or where is my misunderstanding)?
>> 
>>      It is very easy to make small mistakes in the calculation of
>> AffineTransforms
>> that can lead to effects like this.  Resize is especially tricky because
>> it requires a
>> trip through the SVG Document event handlers and it's complex to get the
>> viewing
>> transform and the display transform to behave sensibly.
> 
> Actually, I thought what I am doing would't be that tricky, because my
> current implementation is far from complex. Well, it is now attached.
> Maybe you see my mistake. :-)
> 
> 
> Regards
> Marco<scaletest.svg><ScaleTest.java>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to