File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 padding : 0 5px 5px 5px ;
5858 box-sizing : border-box;
5959}
60- .vp-menu-body > div : nth-child (2 ) {
60+ /* .vp-menu-body > div:nth-child(2) {
6161 margin-top: 50px;
62- }
62+ } */
6363.vp-menu-search-div {
6464 box-sizing : border-box;
6565 padding : 10px 0 10px 0px ;
66- position : absolute ;
67- width : calc ( 100% - 10 px ) ;
66+ position : relative ;
67+ width : 100% ;
6868 background : white;
6969}
7070.vp-menu-search-box {
71- width : calc (100% - 50 px );
71+ width : calc (100% - 45 px );
7272 height : 30px ;
7373 background : # FFFFFF ;
7474 border : 0.25px solid # e4e4e4 ;
8383 width : 20px ;
8484 height : 20px ;
8585 position : relative;
86- right : 32 px ;
86+ right : 30 px ;
8787}
8888.vp-board-toggle-icon {
8989 width : 26px ;
9090 height : 26px ;
9191 position : absolute;
9292 top : 11px ;
93- right : 8 px ;
93+ right : 4 px ;
9494 cursor : pointer;
9595 background-image : url(../ img/toggleNote.svg);
9696 background-position : center;
105105.vp-board-toggle-icon : hover {
106106 background-image : url(../ img/toggleNote.svg);
107107}
108+ .vp-menugroup-list {
109+ height : calc (100% - 45px );
110+ }
108111
109112.vp-menu-footer {
110113 width : 100% ;
Original file line number Diff line number Diff line change 4848 </ div >
4949 </ div >
5050 <!-- Menu Body -->
51- < div id ="vp_menuBody " class ="vp-menu-body vp-scrollbar ">
51+ < div id ="vp_menuBody " class ="vp-menu-body ">
5252 < div class ="vp-menu-search-div ">
5353 < input id ="vp_menuSearchBox " class ="vp-input vp-menu-search-box " type ="text " placeholder ="Search ">
5454 < img class ="vp-menu-search-icon " src ="/nbextensions/visualpython/img/search.svg "/>
5555 < div id ="vp_toggleBoard " class ="vp-board-toggle-icon " title ="Show VP Note "> </ div >
5656 </ div >
57+ < div class ="vp-menugroup-list vp-scrollbar ">
58+
59+ </ div >
5760 </ div >
5861 <!-- Menu Footer -->
5962 < div id ="vp_menuFooter " class ="vp-menu-footer ">
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ define([
252252 menuLibraries && menuLibraries . forEach ( item => {
253253 if ( item . type == 'package' ) {
254254 // packages : MenuGroup
255- var menuGroup = new MenuGroup ( $ ( '#vp_menuBody ' ) , item ) ;
255+ var menuGroup = new MenuGroup ( $ ( '.vp-menugroup-list ' ) , item ) ;
256256 if ( item . item ) {
257257 that . renderMenuItem ( menuGroup ) ;
258258 }
Original file line number Diff line number Diff line change @@ -39,6 +39,8 @@ define([
3939 bodyTag . hide ( ) ;
4040 } else {
4141 bodyTag . show ( ) ;
42+ // scroll to view
43+ $ ( target ) [ 0 ] . scrollIntoView ( { behavior : "smooth" , block : "start" } ) ;
4244 }
4345 evt . stopPropagation ( ) ;
4446 }
You can’t perform that action at this time.
0 commit comments