mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 04:24:14 +09:00
#18457144 자동링크애드온을 textyle 단락에디터의 이미지리사이즈에 맞게 개선
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6967 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ddcbf01c84
commit
14f6655fde
1 changed files with 8 additions and 5 deletions
|
|
@ -121,11 +121,14 @@ function getScreen() {
|
||||||
prevbtn.css("visibility", (this.index>0)?"visible":"hidden");
|
prevbtn.css("visibility", (this.index>0)?"visible":"hidden");
|
||||||
nextbtn.css("visibility", (this.index<this.list.size()-1)?"visible":"hidden");
|
nextbtn.css("visibility", (this.index<this.list.size()-1)?"visible":"hidden");
|
||||||
|
|
||||||
imgframe.attr("src", this.list.eq(this.index).attr("src"))
|
//textyle 이미지 리사이즈 처리
|
||||||
.css({
|
var src = this.list.eq(this.index).attr("rawsrc");
|
||||||
left : Math.round( Math.max( (clientWidth-imgframe.width()-14)/2, 0 ) ) + "px",
|
if(!src) src = this.list.eq(this.index).attr("src");
|
||||||
top : Math.round( Math.max( (clientHeight-imgframe.height()-14)/2, 0 ) ) + "px"
|
|
||||||
});
|
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"
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// 스크린을 닫는 상황
|
// 스크린을 닫는 상황
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue