2012-05-21 2 views
1

코드 및 데모 아래에 숨겨져 페이지 내용은 여기에서 찾을 수 있습니다 : http://chapp.stage.philosophydesign.com/jQuery를 모바일 - 지속적인 헤더

홈 페이지가로드 모든 것이 괜찮습니다. 그러나 바닥 글 탐색을 사용하여 다른 페이지를 전환하면 새 페이지 내용이 머리글 아래에 표시됩니다. 헤더 높이가 올바르게 계산되지 않은 것 같습니다.

왜 이런 일이 발생하며 어떻게됩니까?

답변

4

알려진 문제입니다. 지금까지 나는 하나의 작업을 개발했고 다른 하나는 Github Bug Tracker에서 발견했습니다.

여기에 "Stoppress"(WPSE)에서 우리의 대화를 통해의 요약 결과입니다

// From Bug tracker #4219 @TodParker 
$("[data-position='fixed']").fixedtoolbar('updatePagePadding'); 
// My own solution 
$("[data-position='fixed']").trigger('updatelayout'); 

// Summed up: (Note) `pageload` and `.bind()` and equals won't work here. 
$(document).on("pageshow", function(){ 
    $("[data-position='fixed']").trigger('updatelayout'); 
}); 

당신은 또한 발생한 경우이 문제가 /이 동작을 볼 수, 및 help fixing it or support the Pull request that tries to fix it 단계하시기 바랍니다!