#18457144 자동링크애드온을 textyle 단락에디터의 이미지리사이즈에 맞게 개선

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6967 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
khongchi 2009-11-24 10:19:08 +00:00
parent ddcbf01c84
commit 14f6655fde

View file

@ -121,11 +121,14 @@ function getScreen() {
prevbtn.css("visibility", (this.index>0)?"visible":"hidden");
nextbtn.css("visibility", (this.index<this.list.size()-1)?"visible":"hidden");
imgframe.attr("src", this.list.eq(this.index).attr("src"))
.css({
left : Math.round( Math.max( (clientWidth-imgframe.width()-14)/2, 0 ) ) + "px",
top : Math.round( Math.max( (clientHeight-imgframe.height()-14)/2, 0 ) ) + "px"
});
//textyle 이미지 리사이즈 처리
var src = this.list.eq(this.index).attr("rawsrc");
if(!src) src = this.list.eq(this.index).attr("src");
imgframe.attr("src", src).css({
left : Math.round( Math.max( (clientWidth-imgframe.width()-14)/2, 0 ) ) + "px",
top : Math.round( Math.max( (clientHeight-imgframe.height()-14)/2, 0 ) ) + "px"
});
};
// 스크린을 닫는 상황