向きを縦向きから横向きに変更すると、 iScrollに問題が発生します。AppMobi XDK では動作していますが、iPhone では正しくレンダリングされません。イベントをトラップしようとしてorientationchange
、さまざまなタイムアウト値で iScroll の更新メソッドを呼び出しましたが、うまくいきませんでした。
// My code sample for the orientation change event
document.addEventListener("appMobi.device.orientation.change", orientationChange, false);
function orientationChange(){
setTimeout(function () { myScroll.refresh() }, 0);
//alert("Orientation Change");
}
誰でも助けることができますか?