svnno****@sourc*****
svnno****@sourc*****
2009年 6月 4日 (木) 20:06:02 JST
Revision: 1200
http://svn.sourceforge.jp/view?root=sie&view=rev&rev=1200
Author: dhrname
Date: 2009-06-04 20:06:02 +0900 (Thu, 04 Jun 2009)
Log Message:
-----------
a要素内の文章の位置が、一文字だけ右にずれるというバグを修正
Modified Paths:
--------------
branches/05x/050/sie.js
Modified: branches/05x/050/sie.js
===================================================================
--- branches/05x/050/sie.js 2009-06-04 10:07:01 UTC (rev 1199)
+++ branches/05x/050/sie.js 2009-06-04 11:06:02 UTC (rev 1200)
@@ -101,7 +101,7 @@
document.namespaces.add("o","urn:schemas-microsoft-com:office:office");
var st = document.createStyleSheet();
var vmlUrl = "behavior: url(#default#VML);display:inline-block;} "; //inline-blockはIEのバグ対策
- st.cssText = "v\\:rect{" +vmlUrl+ "v\\:image{" +vmlUrl+ "v\\:fill{" +vmlUrl+ "v\\:stroke{" +vmlUrl+ "o\\:opacity2{" +vmlUrl
+ st.cssText = "v:group div{text-indent:0px;} v\\:rect{" +vmlUrl+ "v\\:image{" +vmlUrl+ "v\\:fill{" +vmlUrl+ "v\\:stroke{" +vmlUrl+ "o\\:opacity2{" +vmlUrl
+ "dn\\:defs{display:none}"
+ "v\\:group{position:relative;width:100%;height:100%;" +vmlUrl
+ "v\\:shape{width:100%;height:100%;" +vmlUrl;
@@ -207,12 +207,12 @@
var tis = texti.style;
tis.left = parseFloat(tis.left) + bl + "px";
tis.top = parseFloat(tis.top) + bt + "px";
+ //以下はdiv要素がa要素のスタイルを継承しないので必要
var tp = texti.parentNode;
while (tp.nodeName === "group") { //group要素である限り、さかのぼる
tp = tp.parentNode;
}
if (tp.nodeName === "A") { //先祖要素がa要素ならば
- tis.marginLeft = -parseFloat(tis.fontSize)+ "px";
tis.cursor = "hand";
}
}
@@ -1318,7 +1318,7 @@
background.style.position = "absolute";
background.style.textAlign = "left"; background.style.top = "0px"; background.style.left = "0px"; background.style.width = this.w+ "px"; background.style.height = this.h+ "px";
outline.appendChild(background);
- background.style.filter = "progid:DXImageTransform.Microsoft.Compositor";
+ background.style.filter = "'progid:DXImageTransform.Microsoft.Compositor'";
background.filters.item('DXImageTransform.Microsoft.Compositor').Function = 23;
var circle = '<v:shape style="position:relative; antialias:false; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +ellipse+ '" stroked="f">' +ele.outerHTML+ '</v:shape>';
background.innerHTML = '<v:shape style="position:relative; top:0px; left:0px;" coordsize="' +this.w+ ' ' +this.h+ '" path="' +data+ '" stroked="f" fillcolor="' +color[color.length-1]+ '" ></v:shape>';
@@ -1401,7 +1401,9 @@
tts.color = this.fill === "none" ? "transparent" : this.fill;
this.fontSize = fontset(this["font-size"],w,h,matrix);
tts.fontSize = this.fontSize+ "px";
- if (this.cursor !== "default") {tts.cursor = this.cursor;}
+ if (this.cursor !== "default") {
+ tts.cursor = this.cursor;
+ }
this.writingMode = tts.writingMode;
tts.marginTop = (this.writingMode === "tb-rl") ? "0px" : -parseFloat(tts.fontSize)+ "px";
} catch(e){stlog.add(e,1185);}