pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From João Martins (JIRA) <j...@apache.org>
Subject [jira] [Commented] (PIVOT-964) Changes in SVG viewBox attribute causes SVG not to render.
Date Wed, 18 Feb 2015 01:10:13 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14325247#comment-14325247

João Martins commented on PIVOT-964:


This problem should not exist with TestClient2 and TestClient3, which showcase the same behaviour
and are much more minimal examples.

I have pushed some changes that include some .launch files for the run configurations. I think
these will work if you pull and restart Eclipse. In case it doesn't, could you set run configurations
for Client and Server, then for both go under the Arguments tab, and in the "Working Directory"
border choose Other: "${workspace_loc}", without quotes.

Once the Client has connected, click one of the faction buttons, and then keep zooming out
(mouse-wheel). The field shows up once the debug message "[DEBUG] Setting viewBox: -550 -408
1101 816" appears. Alternatively, panning to the right and bottom with the right mouse also
works. This behaviour is consistent for me - not random from execution to execution.

This was the only way I could get all the paths to play nice, but having a FTL-data repository
that is linked to also makes a lot of sense! I can even have one for common data and one for
graphics data :) Thanks!

> Changes in SVG viewBox attribute causes SVG not to render.
> ----------------------------------------------------------
>                 Key: PIVOT-964
>                 URL: https://issues.apache.org/jira/browse/PIVOT-964
>             Project: Pivot
>          Issue Type: Bug
>    Affects Versions: 2.0.4
>         Environment: Windows 7, Java 1.7, Eclipse, Pivot 2.0.4, svgSalamander
>            Reporter: João Martins
>            Assignee: Sandro Martini
>              Labels: svgSalamander
>             Fix For: 2.1, 2.0.5
>         Attachments: TestClient2.java, TestClient3.java
> We try to display a simple SVG file with a rect of width 2000 and height 1000. This is
done using an ImageView.
> We have two values of viewBox, both of which capture at least part of the rectangle.
For one of them, the rectangle is rendered. For the other, it isn't (but should).
> The exact same scenario, using svgSalamander & Java Swing, works. With Pivot instead
of Swing, it does not.
> Here is a Swing minimal example: http://pastebin.com/i0xJbUTg
> Here is a Pivot minimal example: http://pastebin.com/tpgnVe0c

This message was sent by Atlassian JIRA

View raw message