mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-19 11:19:56 +09:00
XE 시리즈 스킨에서 IE6에서도 이미지 리사이즈가 제대로 되도록 dummy div 태그 추가. IE6 버그 때문에 어쩔수 없이 추가..
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1972 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e9f3bc1563
commit
7968d1aa58
9 changed files with 23 additions and 11 deletions
|
|
@ -175,16 +175,24 @@ function resizeImageContents() {
|
|||
parent = parent.parentNode;
|
||||
}
|
||||
if(parent.nodeName != "TD" && parent.nodeName != "DIV") continue;
|
||||
|
||||
var parent_width = xWidth(parent);
|
||||
var obj_width = xWidth(obj);
|
||||
if(parent_width>=obj_width) continue;
|
||||
var orig_img = new Image();
|
||||
orig_img.src = obj.src;
|
||||
|
||||
if(parent_width >= obj_width && orig_img.width == obj_width) continue;
|
||||
|
||||
obj.style.cursor = "pointer";
|
||||
obj.source_width = obj_width;
|
||||
obj.source_height = xHeight(obj);
|
||||
xWidth(obj, xWidth(parent)-1);
|
||||
var per = parent_width/obj_width;
|
||||
xHeight(obj, xHeight(obj)*per);
|
||||
|
||||
obj.source_width = orig_img.width;
|
||||
obj.source_height = orig_img.height;
|
||||
|
||||
if(obj_width >= parent_width) {
|
||||
var per = parent_width/obj_width;
|
||||
xWidth(obj, xWidth(parent)-1);
|
||||
xHeight(obj, xHeight(obj)*per);
|
||||
}
|
||||
|
||||
xAddEventListener(obj,"click", showOriginalImage);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue