Closed Bug 436125 Opened 16 years ago Closed 16 years ago

event handling does not work on large SVG Elements

Categories

(Core :: SVG, defect)

x86
Windows Vista
defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: A.Mueller, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9) Gecko/2008051206 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; de; rv:1.9) Gecko/2008051206 Firefox/3.0

we change the position and size of an SVG element to the following size
x=-12800000% y=-12800000% width=25600000% height=25600000%
After this the event handling does not work any longer.

Reproducible: Always

Steps to Reproduce:
1. start index.svg
2. click plus-button
3. click on the map

Actual Results:  
=>nothing happens

Expected Results:  
Remove this lines from syslib.js
//THIS MAKES PROBLEMS
setAttributes(document.getElementById('panAndZoomRect'),{'x':'-12800000%','y':'-12800000%','width':'25600000%','height':'25600000%'});
click on the plus button
click on the map
=> you see an alert, coming from the mousedown event
I suspect that this is not really an SVG problem directly but is due to limitations of the cairo rendering engine that gecko uses.

cairo's co-ordinate system range in firefox 3 is -2^24 to 2^24

I suspect this is a WONTFIX. The range has been extended from the firefox 2 which is 2^16


Component: General → SVG
Product: Firefox → Core
QA Contact: general → general
A more minimal example would be useful to confirm it is a 2^24 range issue.
Yep, could be 2^24, though it could also be an issue with in_fill() or extents().. a minimal testcase would certainly help.
(In reply to comment #3)
> I suspect that this is not really an SVG problem directly but is due to
> limitations of the cairo rendering engine that gecko uses.
> cairo's co-ordinate system range in firefox 3 is -2^24 to 2^24
> I suspect this is a WONTFIX. The range has been extended from the firefox 2
> which is 2^16

Robert,

you are right. if have changed position and size from
x=-12800000% y=-12800000% width=25600000% height=25600000%
to
x=-7500000% y=-7500000% width=15000000% height=15000000%

Now it works. Thank you
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: