Opened 13 years ago
Closed 8 years ago
#5051 closed defect (worksforme)
Safari graphic text and events problems
Reported by: | guest | Owned by: | Eugene Lazutkin |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | DojoX GFX | Version: | 0.9 |
Keywords: | needsreview | Cc: | |
Blocked By: | Blocking: |
Description (last modified by )
I have the following piece of code the problem is when scrolling down to look at the text it does not show up.
Also there is a problem with connect, as it does not function properly I'm using the safari windows version 3.0.3 (522.15.5). Not sure if it's a dojo or safari issue.
dojo.require("dojox.gfx"); init = function(){ var container = dojo.byId("gfx"); var surface = dojox.gfx.createSurface(container, 500, 500); var group1 = surface.createGroup(); var a = group1.createRect({x:50, y:50, width:20, height:20}); a.setFill( "gray" ); var b = group1.createText({x:50, y: 50, text: "123", align: "middle"}); b.setFont({family: "Verdana", size: 10, weight: "bold"}); b.setFill("blue"); var c = surface.createRect({x:400, y:400, width:20, height:20}); c.setFill( "gray" ); var d = surface.createText({x:400, y: 400, text: "123", align: "middle"}); d.setFont({family: "Verdana", size: 10, weight: "bold"}); d.setFill("blue"); dojo.connect(a.getNode(), "onmouseover", function(){ alert("a"); }); dojo.connect(b.getNode(), "onmouseover", function(){ alert("b"); }); dojo.connect(c.getNode(), "onmouseover", function(){ alert("c"); }); dojo.connect(d.getNode(), "onmouseover", function(){ alert("d"); }); }; dojo.addOnLoad(init);
Attachments (2)
Change History (11)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Sorry forgot to attach the html bit...
<html> <head> <title>123</title> <script type="text/javascript" src="dojo/dojo.js"></script> your javascript here </head> <body>
<div id="gfx" style="overflow: auto; height:300px; width:100%;"></div>
</body> </html>
comment:3 Changed 13 years ago by
Milestone: | → 1.1 |
---|---|
Status: | new → assigned |
Summary: | Safri graphic text problems → Safari graphic text and events problems |
Actually both problems are well-known. Please file bugs with Webkit: http://bugs.webkit.org/
I don't close this ticket now, because I want to create a test program for different events --- I use this ticket as a reminder.
comment:4 follow-up: 5 Changed 13 years ago by
I have created a bug report...
http://bugs.webkit.org/show_bug.cgi?id=15920
Please add to it if you think I have not made myself clear regarding the problem.
comment:5 Changed 13 years ago by
elazutkin you may be intrested to take a look at my SVG example. I have a bunch of shapes and text created in svg* (not using dojo) and put it under a height and the text problem does not occur in safari.
Please take a look at test.html.
*got this code from : http://www.carto.net/papers/svg/samples/shapes.shtml
comment:6 Changed 13 years ago by
Milestone: | 1.1 → 1.2 |
---|
comment:8 Changed 9 years ago by
Description: | modified (diff) |
---|---|
Keywords: | needsreview added |
comment:9 Changed 8 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Sorry it's already being reported regarding the text problem, but I don't think the connect issue has.