code: public static ScrollPanel newScrollPanelX (Widget contents, int maxWidth)
      {
          ScrollPanel panel = new ScrollPanel(contents);
          DOM.setStyleAttribute(panel.getElement(), "maxWidth", maxWidth + "px");
          return panel;
      }
docs: Wraps the supplied contents in a scroll panel with the specified maximum width.