Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-29584

Can't re-open doc theme sidebar using keyboard shortcut in IE if sidebar contents require a scrollbar

XMLWordPrintable

      Steps to reproduce:
      1. View a page in the doc theme where the contents of the sidebar require a scrollbar
      2. Collapse the sidebar using the keyboard shortcut ([)
      3. Attempt to expand the sidebar using the same shortcut - it doesn't work!

      Was able to reproduce in IE9, could potentially be a bug in other versions too.

      This bug is caused by the fact that the width of sidebar is being incorrectly reported by IE as 17px (the width of the scrollbar). In our code, we determine whether to expand or collapse the doc theme sidebar as follows (from doc-theme.js):

      splitterButton.removeClass("hidden")
          .click(function(){
              if(splitterSidebar.width() > 0){
                  splitterDiv.trigger("resize", [ 0 ]);
                  AJS.$(this).addClass("collapsed");
              }
              else{
                  splitterDiv.trigger("resize", [ 300 ]);
                  AJS.$(this).removeClass("collapsed");
              }
              return false;
          })
      

              Unassigned Unassigned
              etom edith (Inactive)
              Votes:
              8 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: