Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jquery-mobile-iscrollview footer hides scrollable area #131

Open
mboeckle opened this issue Nov 13, 2013 · 1 comment
Open

jquery-mobile-iscrollview footer hides scrollable area #131

mboeckle opened this issue Nov 13, 2013 · 1 comment

Comments

@mboeckle
Copy link

I am using phonegap / jquery-mobile-iscrollview / dynamic listview

After loading content through $getjson I am doing a refresh (listview and iscrollview) but the size of scrollable area fails, it's too much at the buttom and the fixed footer covers pieces of the scrollable area - is it because of jQuery.mobile.activePage? what I have to at the pageinit to calculate the scrollable area properly?

With the pageinit (forum.html) I load the content through $getjson and doing a refresh;

$( document ).on( "pageinit", "#forum", function( event ) {
//Forum Page INIT
news.setForum();
});

$.getJSON(url_forum, function(json) {
$.each(json, function(key, value) {

            $("#general").tmpl(json[key]).appendTo("#medical_list");
        });

        $("#medical_list").listview("refresh");
        $(".example-wrapper").iscrollview("refresh");

    });
    <div class="example-wrapper" data-iscroll class="iscroll-wrapper">
        <div class="iscroll-scroller">
            <div id="a" class="content_div">

                <div class="iscroll-content">
                    <ul data-role="listview" id="medical_list" data-theme="c">

                    </ul>
                </div>
            </div>

        </div>
    </div>

    <!-- templates for the FORUM LIST -->
    <script id="general" type="text/x-jquery-tmpl">    
    <li data-icon="false"><a href="#"><p><b>${title},${author}</b></p> </a></li>
    </script>

</div>

forum

any ideas? the key must be in the getjson function after adding the list over the template right?

best

@mboeckle
Copy link
Author

it's working properly if i put the second navbar in the header -

best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant