font_resize() 기본크기 line-height 문제
common.js의 font_resize() 관련해서 오류 말씀 드립니다.
403줄
// container의 기본 line-height 저장
if(!default_line_height_saved) {
$("#"+id+" *").data("lh", $("#"+id+" *").css("line-height"));
default_line_height_saved = true;
}
lh값에 저장되는 $("#"+id+" *").css("line-height") 값이 'normal'로 나옵니다.
411번째 줄 if(act == "default")
422번째 줄 lh = $("#"+id+" *").data("lh");
여기서 lh 값이 normal로 출력되는 것이지요.
따라서, 기본글씨 크기로 변경하면 스타일에 line-height='normal' 이렇게 지정됨으로 버튼 글짜들이 중앙에 위치하지 못하게 됩니다.
어디선가 line-height='normal' 이 지정된 것 같은데 어딘지 잘 모르겠습니다.
확인 부탁 드립니다.
403줄
// container의 기본 line-height 저장
if(!default_line_height_saved) {
$("#"+id+" *").data("lh", $("#"+id+" *").css("line-height"));
default_line_height_saved = true;
}
lh값에 저장되는 $("#"+id+" *").css("line-height") 값이 'normal'로 나옵니다.
411번째 줄 if(act == "default")
422번째 줄 lh = $("#"+id+" *").data("lh");
여기서 lh 값이 normal로 출력되는 것이지요.
따라서, 기본글씨 크기로 변경하면 스타일에 line-height='normal' 이렇게 지정됨으로 버튼 글짜들이 중앙에 위치하지 못하게 됩니다.
어디선가 line-height='normal' 이 지정된 것 같은데 어딘지 잘 모르겠습니다.
확인 부탁 드립니다.
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 4개
마이너한 부분이지만 수정되서 배포되어야 할 것 같습니다.
[code]function font_resize(id, act)
{
var $elements = $("#"+id+" *").not("select").not("option");
$elements.removeClass("applied");
// 폰트 크기 변경에 따른 line-height 적용
var lh = 1.5;
if(act == "default")
lh = '';
$("#"+id+" *").css("line-height", lh);
// 엘리먼트의 기본 폰트사이즈 저장
if(!default_font_size_saved) {
save_default_font_size($elements);
}
$elements.each(function() {
if($(this).hasClass("no_text_resize"))
return true;
if($(this).data("fs")) {
set_font_size($(this), act)
}
});
set_cookie("ck_font_resize_act", act, 1, g4_cookie_domain);
}
[/code]
감사드립니다.