0

ユーザーがテキストフィールドをクリックすると、実際に1つの問題に直面していますか?クエリモバイル1.3を使用しています。これは私の同じ問題です。 テキストフィールドにテキストを入力すると、なぜそれらが上がるのですか?

ソリューション jQuery Mobile Responsive Panel and Textarea このソリューションを使用していますが、適切な結果が得られません。これが私のモバイル1.3 js http://jsfiddle.net/fMWnz/です

動作するようにどの行を変更する必要がありますか

(function(root, doc, factory) {
    if (typeof define === "function" && define.amd) {
        // AMD. Register as an anonymous module.
        define(["jquery"], function($) {
            factory($, root, doc);
            return $.mobile;
        });
    } else {
        // Browser globals
        factory(root.jQuery, root, doc);
    }
}(this, document, function(jQuery, window, document, undefined) {
    (function($) {
        $.mobile = {};
    }(jQuery));
    (function($, window, undefined) {
        var nsNormalizeDict = {};
4

1 に答える 1

1

これがあなたの答えです.. 仮想キーボードによるwindow.resizeはjquery mobileで問題を引き起こします

1) Go into jquery.mobile-1.x.x.js

2) Find $.mobile = $.extend() and add the following attributes:

last_width: null,
last_height: null,
3) Modify getScreenHeight to work as follows:

getScreenHeight: function() {
    // Native innerHeight returns more accurate value for this across platforms,
    // jQuery version is here as a normalized fallback for platforms like Symbian

    if (this.last_width == null || this.last_height == null || this.last_width != $( window ).width())
    {
        this.last_height = window.innerHeight || $( window ).height();
        this.last_width = $(window).width();
    }
    return this.last_height;
}
于 2013-07-26T05:13:35.220 に答える