jQuery mobile panel doesn't close fully only on Android browser

l46kok

JSFiddle: http://jsfiddle.net/nbh1rn33/

I have a weird issue with jQm panel.

An opened panel doesn't close fully. See below image:

在此处输入图片说明

Strangely, this only happens on Android browser, and not on PC (Chrome, IE).

Is this a bug with jQm or have I done something wrong?

<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.css" rel="stylesheet"/>
    <script src="https://code.jquery.com/jquery-2.1.4.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>
</head>
<body>
    <div data-role="page">
        <div data-role="header" data-position="fixed" >
            <h1>Test Page</h1>
            <div data-type="horizontal" data-role="controlgroup">  
                <a href="#search_condition_panel" id="search_condition_btn" class="ui-btn ui-btn-inline ui-mini ui-corner-all ui-btn-icon-right ui-icon-grid">Show Options</a>
            </div>
        </div>
        <div role="main" class="ui-content">
        </div>
        <div data-position-fixed="true" data-role="panel" data-display="overlay" id="search_condition_panel" data-position="right">
            <div class="ui-field-contain">
                <label for="search-condition-select-brand">Brand</label>
                <select id="search-condition-select-brand" name="search-condition-select-brand" data-mini="true">
                </select>
            </div>
        </div>
        <div id="datepicker"></div>
    </div>
</body>
</html>
Pinal

Look like jQuery UI bug, for 1.4.2 it can not be reproduced and it reproduced for 1.4.5. Test on my Galaxy S4

The main difference in your case is in сss properties of class .ui-panel-closed:

/* 1.4.5 */
.ui-panel-closed {
  width: 0;
  max-height: 100%;
  overflow: hidden;
  visibility: hidden;
  left: 0;
  clip: rect(1px,1px,1px,1px);
}
/* 1.4.2 */
.ui-panel-closed {
  width: 0;
  max-height: 100%;
  overflow: hidden;
  visibility: hidden;
}

And if you reset left css property for .ui-panel-closed all will work fine:

.ui-panel-closed {
  left: auto !important; // left auto fix problem
}

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

jquery mobile popup close button doesn't always work

来自分类Dev

jQuery Mobile Panel样式问题

来自分类Dev

jQuery Mobile:UI-Panel内容在Android 4.4.2上第二次消失

来自分类Dev

jQuery Mobile Panel打开操作之前

来自分类Dev

jQuery Mobile Panel无法正常运行

来自分类Dev

jQuery Mobile Panel导航冻结/挂起

来自分类Dev

jQuery Mobile Panel打开时隐藏flexslider

来自分类Dev

调用.panel()函数时,jQuery Mobile Panel小部件会引发错误(1.4.5,jquery 1.11.1)

来自分类Dev

在靠近面板的位置单击时,jQuery Mobile Panel未关闭

来自分类Dev

jQuery mobile Panel的页眉和页脚高度差

来自分类Dev

jQuery Mobile和Ajax Panel无法正确打开

来自分类Dev

在靠近面板的位置单击时,jQuery Mobile Panel未关闭

来自分类Dev

更新后,jQuery Mobile Panel无法正常工作

来自分类Dev

jQuery Mobile Listview in Dialog won't initialize

来自分类Dev

如何将链接列表添加到JQuery Mobile Panel?

来自分类Dev

mysql insert only if not exists doesn't work

来自分类Dev

Android, setReuseAddress doesn't work

来自分类Dev

css doesn't work in firefox, but in all other browser it does

来自分类Dev

从android中的jQuery mobile(phonegap)应用程序打印

来自分类Dev

jQuery Mobile图标未在Android 2.3中显示

来自分类Dev

Why the scrollTop in jQuery doesn't work on Firefox?

来自分类Dev

使用JavaScript的Focus Mobile Browser

来自分类Dev

jQuery - `on` event doesn't work after jQuery.replaceWith

来自分类Dev

jQuery Mobile的基本标题

来自分类Dev

Jquery Mobile的验证样式

来自分类Dev

jQuery Mobile菜单

来自分类Dev

jQuery Mobile和PHP

来自分类Dev

jQuery Mobile显示空白

来自分类Dev

jQuery Mobile停止事件

Related 相关文章

热门标签

归档