|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Likely Batik bug with SVG scrollbarsI am trying to use the scrollbars defined in [1] but there
seems to be a bug in the way Batik handles them. If you unpack the contents
of the attached JAR and open the SVG in Batik you will find that if you drag
the lower image up as far as it can go and then try to use the top horizontal
scroll bar, the lower image will be scrolled instead. It seems that Batik
thinks the lower image has moved over the top of the upper one which is not the
case. The same SVG
works properly in Opera and ASV. NB. I had to remove the images from the ZIP for size reasons
so you will need to put a couple of JPEGs named “upper.jpg” and “lower.jpg”
into the same directory you unpack the JAR into (any images will do). You
will also need to scroll to the right to see both images depending on their
size. Can anyone see why this buggy behaviour is happening?
Can it be fixed? Getting SVG scrollbars to work with Batik is critical to
my current project so I really need to resolve this. Thanks, John [1] http://www.carto.net/papers/svg/gui/scrollbar |
|
|
Re: Likely Batik bug with SVG scrollbarsHi John, "John C. Turnbull" <ozemale@...> wrote on 11/25/2008 02:27:51 AM: > [..] open the SVG in Batik you will find that if > you drag the lower image up as far as it can go and then try to use > the top horizontal scroll bar, the lower image will be scrolled > instead. It seems that Batik thinks the lower image has moved over > the top of the upper one which is not the case. Actually it has, it's just that it's drawing was clipped. Last time I checked it was unclear if SVG events should respect clipping or not (there are arguments on both sides). Anyway take a look at: https://issues.apache.org/bugzilla/show_bug.cgi?id=46289 > Can anyone see why this buggy behaviour is happening? Can it be > fixed? Getting SVG scrollbars to work with Batik is critical to my > current project so I really need to resolve this. I'm not sure it's really buggy behavior. |
|
|
RE: Likely Batik bug with SVG scrollbarsHi Thomas, Thanks very much for that. Do I need to make the local modifications manually or is there a
way to automatically apply the patch? Or perhaps it will be in SVN soon? Personally, I think it makes more sense this way and is
consistent with other SVG viewers I have tried. John From: thomas.deweese@...
[mailto:thomas.deweese@...]
|
|
|
RE: Likely Batik bug with SVG scrollbarsHi John, "John C. Turnbull" <ozemale@...> wrote on 11/25/2008 07:03:52 AM: > Thanks very much for that. > > Do I need to make the local modifications manually or is there a way > to automatically apply the patch? You can use the 'patch' program. You should be able to find a copy for just about any OS. > Or perhaps it will be in SVN soon? Not unless someone can point to a definitive decision by the SVG WG one way or the other. I don't want to change behavior and then have to change back. Clearly the SVG WG needs to address this issue. > Personally, I think it makes more sense this way and is consistent > with other SVG viewers I have tried. Ok. > From: thomas.deweese@... [mailto:thomas.deweese@...] > Sent: Tuesday, 25 November 2008 22:49 > To: batik-users@... > Cc: batik-users@... > Subject: Re: Likely Batik bug with SVG scrollbars > > > Hi John, > > "John C. Turnbull" <ozemale@...> wrote on 11/25/2008 02:27:51 AM: > > > [..] open the SVG in Batik you will find that if > > you drag the lower image up as far as it can go and then try to use > > the top horizontal scroll bar, the lower image will be scrolled > > instead. It seems that Batik thinks the lower image has moved over > > the top of the upper one which is not the case. > > Actually it has, it's just that it's drawing was clipped. > Last time I checked it was unclear if SVG events should respect > clipping or not (there are arguments on both sides). > > Anyway take a look at: > https://issues.apache.org/bugzilla/show_bug.cgi?id=46289 > > > Can anyone see why this buggy behaviour is happening? Can it be > > fixed? Getting SVG scrollbars to work with Batik is critical to my > > current project so I really need to resolve this. > > I'm not sure it's really buggy behavior. [attachment "PGP.sig" > deleted by Thomas E. DeWeese/449433/EKC] |
|
|
RE: Likely Batik bug with SVG scrollbarsHi Thomas, I can confirm that the patch works very well. Thanks! John From: thomas.deweese@...
[mailto:thomas.deweese@...]
|
|
|
Re: Likely Batik bug with SVG scrollbars> Clearly the SVG WG needs to address this issue.
This was made recently. Details added into the bug report [1]. Hope this helps, Helder Magalhães [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=46289#c1 --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@... For additional commands, e-mail: batik-users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |