[Sie-announce] SIEコード [1059] radialGradient要素の表示を修正

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 10日 (火) 23:56:14 JST


Revision: 1059
          http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1059
Author:   dhrname
Date:     2009-03-10 23:56:14 +0900 (Tue, 10 Mar 2009)

Log Message:
-----------
radialGradient要素の表示を修正

Modified Paths:
--------------
    branches/04x/044/sie.js

Modified: branches/04x/044/sie.js
===================================================================
--- branches/04x/044/sie.js	2009-03-09 14:17:36 UTC (rev 1058)
+++ branches/04x/044/sie.js	2009-03-10 14:56:14 UTC (rev 1059)
@@ -1268,12 +1268,14 @@
     var elout = ele.outerHTML;
     var et = parseFloat(this.tar.currentStyle.top), el = parseFloat(this.tar.currentStyle.left), ew = parseFloat(this.tar.currentStyle.width), eh = parseFloat(this.tar.currentStyle.height), ew2 = ew / 2;
     var ellipse = "ar " +et+ "," +el+ "," +eh+ "," +ew+ " " +ew2+ ",0 " +ew2+ ",0 e";
-    background.innerHTML = '<v:shape style="position:relative; width:100%; height:100%;"   path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
-    gradient.innerHTML = '<v:shape style="position:relative; width:100%; height:100%; antialias:false;"  path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>';
+    var coord = 'coordsize="' +this.w+ ' ' +this.h+ '"';
+    background.innerHTML = '<v:shape style="position:relative;" coordorgin="0 0"' +coord+ 'path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" />';
+    gradient.innerHTML = '<v:shape style="position:relative; antialias:false;" coordorgin="0 0"' +coord+ 'path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>';
     background.filters[0].apply();
-    background.innerHTML = '<v:shape style="position:relative; width:100%; height:100%; antialias:false;"  path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>';
+    background.innerHTML = '<v:shape style="position:relative; antialias:false;" coordorgin="0 0"' +coord+ 'path="' +ellipse+ '" stroked="f">' +elout+ '</v:shape>';
     background.filters[0].play();
     this.tar.parentNode.insertBefore(background, this.tar);
+    background.style.left = "-40";
     this.tar.setAttribute("filled", "false");
     return true;
     } catch(e) {stlog.add(e,1175);}




Sie-announce メーリングリストの案内
Back to archive index