mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 12:22:15 +09:00
이미지 리사이즈 버그 수정 (대형 이미지 여러개 첨부되어 있는 경우)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3065 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3bbb59212d
commit
b88e52214f
1 changed files with 2 additions and 2 deletions
|
|
@ -224,10 +224,10 @@ function resizeImageContents() {
|
|||
// 상위 node의 className이 document_ 또는 comment_ 로 시작하지 않으면 패스
|
||||
var parent = obj.parentNode;
|
||||
while(parent) {
|
||||
if(/(document_|comment_)/ig.test(parent.className)) break;
|
||||
if(parent.className && parent.className.search(/document_|comment_/i) != -1) break;
|
||||
parent = parent.parentNode;
|
||||
}
|
||||
if(!parent || !/(document_|comment_)/ig.test(parent.className)) continue;
|
||||
if (!parent || parent.className.search(/document_|comment_/i) < 0) continue;
|
||||
|
||||
if(parent.parentNode) xWidth(parent, xWidth(parent.parentNode));
|
||||
parent.style.width = '100%';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue