File tree Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Expand file tree Collapse file tree 3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,12 @@ a.sidebar-toggle {
113
113
.sidebar-mini .sidebar-collapse .sidebar-menu > li : hover > a > span : not (.pull-right ),
114
114
.sidebar-mini .sidebar-collapse .sidebar-menu > li : hover > .treeview-menu {
115
115
border-radius : 0 ;
116
- width : 220 px ;
116
+ width : 230 px ;
117
117
}
118
118
119
119
/*侧边栏收起后向右展开时一级菜单箭头的位置*/
120
120
.sidebar-mini .sidebar-collapse .sidebar-menu > li : hover > a > .pull-right-container {
121
- left : 220 px !important ;
121
+ left : 230 px !important ;
122
122
}
123
123
124
124
.sidebar-mini .sidebar-collapse .sidebar-menu > li > .treeview-menu {
@@ -181,6 +181,24 @@ li.menuTitle a {
181
181
height : 36px ;
182
182
left : 100% ;
183
183
}
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
+ }
184
202
}
185
203
186
204
/*侧边栏滚动条*/
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ function sidebarScrollFix() {
23
23
$titleBar . css ( {
24
24
"top" : ( $ ( this ) . offset ( ) . top - $ ( window ) . scrollTop ( ) ) + "px" ,
25
25
//fix由于侧边栏滚动条宽度引起的减少的宽度
26
- "width" : "223px "
26
+ "width" : "233px "
27
27
} ) ;
28
28
29
29
//如果底部空间不够,动态增加侧边栏高度
@@ -44,12 +44,12 @@ function sidebarScrollFix() {
44
44
45
45
//fix小尺寸屏幕下二级菜单高度高于窗口高度时显示不全的情况
46
46
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() );
48
48
var requireActiveListHeight = $activeList . height ( ) ;
49
49
if ( activeListOffsetBottom < requireActiveListHeight ) {
50
50
$activeList . css ( { "height" : activeListOffsetBottom } ) ;
51
51
//滚动条样式
52
- $activeList . addClass ( 'scroll-list' ) ;
52
+ $activeList . addClass ( 'scroll-list' ) ;
53
53
}
54
54
55
55
} , function ( evt ) {
Original file line number Diff line number Diff line change @@ -505,7 +505,7 @@ var exampleConfig = {
505
505
name : "Elasticsearch" ,
506
506
name_en : "Elasticsearch" ,
507
507
content : {
508
- "viz " : {
508
+ "es_viz " : {
509
509
name : "可视化" ,
510
510
name_en : "visualization" ,
511
511
content : [ {
You can’t perform that action at this time.
0 commit comments