code: function fixSidebar() {
              if ($sidebarInner.outerHeight() < $content.outerHeight()) {
                  $sidebar.addClass('kss-fixed');
                  if ($sidebarInner.outerHeight() > $window.height()) {
                      $sidebar.height($window.height());
                      $window.on('scroll', scrollSidebar).trigger('scroll');
                  }
                  else {
                      $sidebar.height('auto');
                      $window.off('scroll', scrollSidebar);
                  }
              }
              else {
                  $sidebar.removeClass('kss-fixed');
                  $sidebar.height('auto');
                  $window.off('scroll', scrollSidebar);
              }
          }
docs: Fix sidebar position