미디어위키:Common.js: 두 판 사이의 차이

편집 요약 없음
편집 요약 없음
262번째 줄: 262번째 줄:


             var ratio = $img.naturalWidth / $img.naturalHeight;
             var ratio = $img.naturalWidth / $img.naturalHeight;
             $elem.children[i].style.width = (ratio / totalRatio) * (totalWidth - 6 * lineMax) + 6 + 'px';
             var width = (ratio / totalRatio) * (totalWidth - 6 * lineMax) + 6;
            $elem.children[i].style.width = (width / totalWidth) * 100 + '%';
         }
         }
     }
     }
}
}