1

I've been struggling with this. When on my Droid 2.3.4 and viewing content via iFrame in Fancybox2, I'm not getting scroll bars. I've seen many potential solutions, but all have no affect. All other browsers, including iPhone 5 and iPad.. work. I'm only having trouble with my Droid.

Here is the calling function.

$('.various').fancybox({
    maxWidth    : 800,
    maxHeight   : 600,
    fitToView   : false,
    width       : '95%',
    height      : '70%',
    autoSize    : false,
    closeClick  : false,
    openEffect  : 'elastic',
    closeEffect : 'none',
    helpers : {
        overlay : {
            locked : false
        }
    }
});

I've tried various overflow:scrolls or the !important fix, but nothing works. I've even tried using iScroll, but nothing is providing any scrolling.

Please let me know if you have any ideas. I'm about to the point of putting special handling for Droid devices to open a separate page.. but obviously, I want to avoid this.

4

1 に答える 1

2

携帯電話の遺物に関する私の経験から、Android 2.3.x はセカンダリ スクロール バーをサポートしておらず、ブラウザー自体のスクロール バーのみをサポートしています。

Android 2.3.x は現在、アクティブな Android デバイスの半分以上を占めているため、これは非常に大きな問題です。

唯一の解決策は、ユーザーがメイン スクロール バーを使用して残りのコンテンツを表示できるように、fancyBox をビューポートの高さを超えて拡張できるようにすることです。

于 2013-04-29T07:02:19.523 に答える