svnno****@sourc*****
svnno****@sourc*****
2010年 3月 15日 (月) 23:29:48 JST
Revision: 1735 http://sourceforge.jp/projects/sie/svn/view?view=rev&revision=1735 Author: dhrname Date: 2010-03-15 23:29:48 +0900 (Mon, 15 Mar 2010) Log Message: ----------- Modified Paths: -------------- branches/ufltima/dom/svg.js Modified: branches/ufltima/dom/svg.js =================================================================== --- branches/ufltima/dom/svg.js 2010-03-15 14:22:43 UTC (rev 1734) +++ branches/ufltima/dom/svg.js 2010-03-15 14:29:48 UTC (rev 1735) @@ -1121,11 +1121,13 @@ var tar = s.documentElement; var sdt = tar._tar; document.body.insertBefore(sdt, document.body.lastChild); + tar.viewport.width = 1000; + tar.viewport.height = 1000; /*以下では、VMLの要素とHTMLのCSSのプロパティを用いて、背景を *作り出す作業を行う。これは必須 */ var backr = document.createElement("v:rect"); - var w = 1000/*tar.viewport.width*/, h = 1000/*tar.viewport.height*/, sw = tar.width.baseVal, sh = tar.height.baseVal; + var w = tar.viewport.width, h = tar.viewport.height, sw = tar.width.baseVal, sh = tar.height.baseVal; backr.style.position = "absolute"; backr.style.width = w+ "px"; backr.style.height = h+ "px";