Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

iOS5/touchOverflowEnabled layout problems  #2744

@thomson02

Description

@thomson02

Hi Guys,

I've noticed an issue using the latest version of jQM. There seems to be layout problems when using iOS5 + touchOverflowEnabled = true. What i'm seeing is that the width of the page is calculated incorrectly and as a result the page is squeezed into ~75% width of the page.

From playing around with it, it seems to be a problem with divs marked with data-role="content". When i remove the data-role, i don't see the problem.

It is really easy to reproduce. Use the following body and initialise jQM + jQuery in the usual way (making sure to set touchOverflowEnabled = true). Disabling touchOverflowEnabled or removing data-role resolves the issue.

    <div id="index-page" data-role="page">

        <div data-role="header" data-position="fixed"><h2>Header</h2></div>

        <div id="content" data-role="content">
            <div class="ui-grid-b">
                <div class="ui-block-a">
                    <button>A</button>
                </div>
                <div class="ui-block-b">
                    <button>A</button>
                </div>
                <div class="ui-block-c">
                    <button>A</button>
                </div>
            </div>
        </div>

    </div>

Thanks,
Andrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions