private void redraw(boolean autoScroll) {
   if (autoScroll) {
     String historyToken = History.getToken();
     if (!Strings.isNullOrEmpty(historyToken)) {
       int top = this.affixMenu.getPinnedOffset();
       Window.scrollTo(Window.getScrollLeft(), top);
     } else {
       Window.scrollTo(Window.getScrollLeft(), 0);
     }
   }
 }
 private void doScrollTo(double progress) {
   Double delta;
   if (progress > 0) {
     if (Window.getScrollTop() <= newScrollTop) {
       delta = Window.getScrollTop() + (newScrollTop - Window.getScrollTop()) * progress;
       Window.scrollTo(0, delta.intValue());
     } else {
       delta = Window.getScrollTop() - (Window.getScrollTop() - newScrollTop) * progress;
       Window.scrollTo(0, delta.intValue());
     }
   }
 }
  /** Apply style properties */
  private void applyStyles() {
    lblTitle.setStyleName("h3");
    setStyleName("contact");

    Window.scrollTo(0, 0);
    setGlassEnabled(true);
    setPopupPosition(90, 104);
    setWidth("250px");
  }
 /** Class constructor */
 public CommunityView() {
   setWidget(uiBinder.createAndBindUi(this));
   libraryView = new LibraryView(PlaceTokens.DISCOVER);
   //		libraryView.getCourseTabs().setVisible(false);
   Window.scrollTo(0, 0);
   landingpagePanel.add(libraryView);
   landingpagePanel.getElement().setId("pnlPartnerPanel");
   // landingpagePanel.getElement().getStyle().setMarginTop(39, Unit.PX);
 }
 @Override
 public void setPresenter(final Presenter presenter) {
   this.presenter = presenter;
   header.clear();
   header.add(headerWidget.asWidget());
   footer.clear();
   footer.add(footerWidget.asWidget());
   headerWidget.refresh();
   Window.scrollTo(0, 0); // scroll user to top of page
 }
 @Test
 public void emptyMethods() {
   // Act & Assert
   Window.enableScrolling(true);
   Window.moveBy(1, 2);
   Window.moveTo(3, 4);
   Window.resizeBy(3, 6);
   Window.resizeTo(8, 9);
   Window.scrollTo(2, 4);
 }
 @Override
 public void onReveal() {
   super.onReveal();
   Window.scrollTo(0, 0);
 }
 public static void fixHeight() {
   RootLayoutPanel.get().setHeight(getWindowInnerHeight() + "px");
   Window.scrollTo(0, 0);
 }
 @Override
 public void onBind() {
   super.onBind();
   Window.scrollTo(0, 0);
 }