修复苹果手机IOS下不能左右滚动问题,另外需按如下步骤操作手机:设置 -> Safari浏览器 -> 高级 -> Experimental

Features -> 关闭 Async Frame Scrolling 选项。
This commit is contained in:
thinkgem
2018-12-17 22:46:19 +08:00
parent 1724e3ead1
commit 2d7f66b1e0
2 changed files with 8 additions and 2 deletions

View File

@@ -2610,7 +2610,13 @@ $.fn.layout = function (opts) {
}
// ensure no vertical scrollbar on pane - will mess up measurements
if ($P.css("overflowX").match(/(scroll|auto)/)) {
$P.css("overflow", "hidden");
// $P.css("overflow", "hidden");
// 优化IOS下iframe不支持滚动的问题 ThinkGem
if (navigator.userAgent.match(/iPad|iPhone/i) && $P.find('iframe').length > 0) {
$P.addClass('iframe-ios');
}else{
$P.css("overflow", "hidden");
}
}
state[pane].content = {}; // init content state
if (resize !== false) sizeContent(pane);

View File

@@ -13,7 +13,7 @@ var bodyClass = 'fixed noscroll2 sidebar-mini ' + sidebarCollapse;
<link rel="stylesheet" href="${ctxStatic}/jquery-toastr/2.0/toastr.min.css?${_version}">
<link rel="stylesheet" href="${ctxStatic}/adminlte/css/skins/${skinName}.css?${_version}">
<link rel="stylesheet" href="${ctxStatic}/modules/sys/sysIndex.css?${_version}">
<header class="main-header">
<header class="main-header">
<% include('sysIndex/topMenu.html'){} %>
</header>
<aside class="main-sidebar">