3

中にframeset2framesつあり、上のものは日付ピッカーを開いていますが、下のフレームのために完全に表示されていません...

を増やしてみましz-indexui-datepicker-divが、うまくいきません。

質問に関する疑問を明確にするために、画像を投稿しています。

ここに画像の説明を入力

これができない場合、私は新しい解決策を受け入れます (ダイアログを開くことを考えていましたが、混乱すると思います)。

前もって感謝します!

(明らかにフレーム内にフレームセットが表示されていないため、jsFiddle でデモを作成できません)

4

1 に答える 1

3

1 つの解決策 (ハック) は、日付ピッカーが表示された後、フレームの下部までスクロールして日付ピッカー全体を表示することです。

例:

$(".myDatepickers").datepicker({ 
    beforeShow: function(input, inst) {
        // There's no On-/After Show event for datepicker (closest is beforeShow), 
        // so use a timeout-hack to wait until the datepicker has rendered
        // and then scroll.
        setTimeout(function() {
            // Get the document height, but you could also get the position + size 
            // of the datepicker to scroll just so that the datepicker will show.
            var scrollTo = $(document).height();

            // And scroll to the new position.
            $("html, body").scrollTop(scrollTo);
        }, 500); // Increase/decrease the timeout as needed.
    } 
});

日付ピッカーの後にコンテンツがある場合は、日付ピッカーの位置を取得し、日付ピッカーのサイズをオフセットしてスクロール位置を取得できます。

于 2013-08-16T13:18:59.680 に答える