Skip to content

Commit 1681dc7

Browse files
committed
修改例子侧边栏小窗口下跳动 相同配置名的示例展开错乱 问题
1 parent dd9bf6e commit 1681dc7

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

examples/css/sideBar.css

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ a.sidebar-toggle {
113113
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > span:not(.pull-right),
114114
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > .treeview-menu {
115115
border-radius: 0;
116-
width: 220px;
116+
width: 230px;
117117
}
118118

119119
/*侧边栏收起后向右展开时一级菜单箭头的位置*/
120120
.sidebar-mini.sidebar-collapse .sidebar-menu > li:hover > a > .pull-right-container {
121-
left: 220px !important;
121+
left: 230px !important;
122122
}
123123

124124
.sidebar-mini.sidebar-collapse .sidebar-menu > li > .treeview-menu {
@@ -181,6 +181,24 @@ li.menuTitle a {
181181
height: 36px;
182182
left: 100%;
183183
}
184+
/*侧边栏滚动设置 start*/
185+
#sidebar-menu > li:hover .sidebar-title-bar {
186+
position: static;
187+
}
188+
189+
.sidebar-collapse #sidebar-menu > li:hover .sidebar-title-bar {
190+
position: static;
191+
}
192+
193+
#sidebar-menu > li:hover > ul {
194+
position: static;
195+
height: auto;
196+
}
197+
198+
.sidebar-collapse #sidebar-menu > li:hover > ul {
199+
position: static;
200+
overflow-y: auto;
201+
}
184202
}
185203

186204
/*侧边栏滚动条*/

examples/js/sidebar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function sidebarScrollFix() {
2323
$titleBar.css({
2424
"top": ($(this).offset().top - $(window).scrollTop()) + "px",
2525
//fix由于侧边栏滚动条宽度引起的减少的宽度
26-
"width": "223px"
26+
"width": "233px"
2727
});
2828

2929
//如果底部空间不够,动态增加侧边栏高度
@@ -44,12 +44,12 @@ function sidebarScrollFix() {
4444

4545
//fix小尺寸屏幕下二级菜单高度高于窗口高度时显示不全的情况
4646
var $activeList = $(this).children('ul');
47-
var activeListOffsetBottom = $(window).height() - visibleOffsetTop - $(this).height();
47+
var activeListOffsetBottom = $activeList.height() - visibleOffsetTop; //Math.abs($(window).height() - visibleOffsetTop - $(this).height());
4848
var requireActiveListHeight = $activeList.height();
4949
if (activeListOffsetBottom < requireActiveListHeight) {
5050
$activeList.css({"height": activeListOffsetBottom});
5151
//滚动条样式
52-
$activeList.addClass('scroll-list');
52+
$activeList.addClass('scroll-list');
5353
}
5454

5555
}, function (evt) {

examples/leaflet/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ var exampleConfig = {
505505
name: "Elasticsearch",
506506
name_en: "Elasticsearch",
507507
content: {
508-
"viz": {
508+
"es_viz": {
509509
name: "可视化",
510510
name_en: "visualization",
511511
content: [{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy