2011-11-11 5 views
1

jqTransform 플러그인을 사용하여 페이지의 양식 항목에 스타일을 추가하고 있습니다. 탭에 세 가지 형식이 있고 두 번째 및 세 번째 탭의 선택 상자가 올바르게 작동하지 않습니다.jqTransform 플러그인을 사용하는 버그

어떤 이유로 든 스크립트가 해당 선택 상자 목록에 "높이 : 0"을 적용한 것처럼 보입니다. 이 작업을 처리하는 코드는 다음과 같습니다.

// Calculate the height if necessary, less elements that the default height 
//show the ul to calculate the block, if ul is not displayed li height value is 0 
$ul.css({display:'block',visibility:'hidden'}); 
var iSelectHeight = ($('li',$ul).length)*($('li:first',$ul).height());//+1 else bug ff 
(iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'hidden'});//hidden else bug with ff 
$ul.css({display:'none',visibility:'visible'}); 

나는 왜 이런 일이 발생하는지 이해하지 못합니다.

답변

-1

을 주석 라인 그것은 나를 위해 작동

(iSelectHeight < $ul.height()) && $ul.css({height:iSelectHeight,'overflow':'hidden'}) 

.

관련 문제