File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ function initNavTree(toroot,relpath) {
2828 const ARROW_DOWN = '<span class="arrowhead opened"></span>' ;
2929 const ARROW_RIGHT = '<span class="arrowhead closed"></span>' ;
3030 const NAVPATH_COOKIE_NAME = '$PROJECTID' + 'navpath' ;
31+ const fullSidebar = typeof page_layout !== 'undefined' && page_layout == 1 ;
3132
3233 function getScrollBarWidth ( ) {
3334 let outer = $ ( '<div>' ) . css ( { visibility : 'hidden' , width : 100 , overflow : 'scroll' } ) . appendTo ( 'body' ) ;
@@ -40,9 +41,11 @@ function initNavTree(toroot,relpath) {
4041 const hasFadingScrollbars = ! isSafari ;
4142
4243 function adjustSyncIconPosition ( ) {
43- const nt = document . getElementById ( "nav-tree" ) ;
44- const hasVerticalScrollbar = nt . scrollHeight > nt . clientHeight ;
45- $ ( "#nav-sync" ) . css ( { right :parseInt ( hasVerticalScrollbar ?scrollbarWidth :0 ) } ) ;
44+ if ( ! fullSidebar ) {
45+ const nt = document . getElementById ( "nav-tree" ) ;
46+ const hasVerticalScrollbar = nt . scrollHeight > nt . clientHeight ;
47+ $ ( "#nav-sync" ) . css ( { right :parseInt ( hasVerticalScrollbar ?scrollbarWidth :0 ) } ) ;
48+ }
4649 }
4750
4851 const getData = function ( varName ) {
You can’t perform that action at this time.
0 commit comments