code: protected void updateButtonVisibility(int width) {
  
          if (!m_buttonsFolded && (m_foldingThreshhold > width)) {
              foldButtons();
          } else if (m_buttonsFolded && (width > m_foldingThreshhold)) {
              unfoldButtons();
          }
      }
docs: Updates the button visibility according o the given widow width.<p>
  
  @param width the window width