File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
$ ( function ( ) {
2
2
$ ( '.navigationDiv' ) . load ( "nav.html .main-sidebar" , null , function ( ) {
3
- // var height = $('.sidebar').height();
4
- // $('.main-sidebar #categories').css('height', height - 72 + 'px');
3
+ var height = $ ( '.sidebar' ) . height ( ) ;
4
+ $ ( '.main-sidebar #categories' ) . css ( 'height' , height - 125 + 'px' ) ;
5
5
// Search Items
6
6
$ ( '#searchBox' ) . on ( 'keyup' , function ( e ) {
7
7
@@ -99,8 +99,8 @@ $(function () {
99
99
} )
100
100
101
101
} ) ;
102
- // $(window).resize(function () {
103
- // var height = $('.navigationDiv .sidebar').height();
104
- // $('.main-sidebar #categories').css('height', height - 72 + 'px');
105
- // })
102
+ $ ( window ) . resize ( function ( ) {
103
+ var height = $ ( '.navigationDiv .sidebar' ) . height ( ) ;
104
+ $ ( '.main-sidebar #categories' ) . css ( 'height' , height - 125 + 'px' ) ;
105
+ } )
106
106
} ) ;
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ function buildLi(obj){
151
151
<input id="searchBox" type="text" class="form-control input-sm" placeholder="Search Documentations">
152
152
<div class="split-line"></div>
153
153
</div>
154
- <div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;padding -top:125px;height:100%' id='categories'>
154
+ <div style='width: 100%;position: absolute;top: 0px;bottom: 0px;left: 0px;margin -top:125px;height:100%' id='categories'>
155
155
<div style='height:100%;overflow:auto'>
156
156
<ul class="sidebar-menu tree list" data-widget='tree'>
157
157
<?js
You can’t perform that action at this time.
0 commit comments