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 {
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 : 220 px ;
116+ width : 230 px ;
117117}
118118
119119/*侧边栏收起后向右展开时一级菜单箭头的位置*/
120120.sidebar-mini .sidebar-collapse .sidebar-menu > li : hover > a > .pull-right-container {
121- left : 220 px !important ;
121+ left : 230 px !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/*侧边栏滚动条*/
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 : [ {
You can’t perform that action at this time.
0 commit comments