/** * Scroll to the bottom of this panel. */ public void scrollToBottom() { setVerticalScrollPosition(getMaximumVerticalScrollPosition()); }
/** * Scroll to the bottom of this panel. */ public void scrollToBottom() { setVerticalScrollPosition(getMaximumVerticalScrollPosition()); }
/** * Scroll to the bottom of this panel. */ public void scrollToBottom() { setVerticalScrollPosition(getMaximumVerticalScrollPosition()); }
private int getPermanentAppGroupMaxScrollTop() { return permanentAppScrollPanel.getMaximumVerticalScrollPosition() - permanentAppScrollPanelStyle.getBorder()[0] - permanentAppScrollPanelStyle.getBorder()[2]; }
@UiHandler("revisionsPanel") public void onPanelScrolled(ScrollEvent ignored) { // We cannot rely on exact equality of scroll positions because GWT sometimes round such values // and it is possible that the actual max scroll position is a pixel less then declared. if (revisionsPanel.getMaximumVerticalScrollPosition() - revisionsPanel.getVerticalScrollPosition() <= 1) { // to avoid autoscrolling to selected item revisionsPanel.getElement().focus(); delegate.onScrolledToBottom(); } } }
@UiHandler("revisionsPanel") public void onPanelScrolled(ScrollEvent ignored) { // We cannot rely on exact equality of scroll positions because GWT sometimes round such values // and it is possible that the actual max scroll position is a pixel less then declared. if (revisionsPanel.getMaximumVerticalScrollPosition() - revisionsPanel.getVerticalScrollPosition() <= 1) { // to avoid autoscrolling to selected item revisionsPanel.getElement().focus(); delegate.onScrolledToButton(); } } }
@UiHandler("revisionsPanel") public void onPanelScrolled(ScrollEvent ignored) { // We cannot rely on exact equality of scroll positions because GWT sometimes round such values // and it is possible that the actual max scroll position is a pixel less then declared. if (revisionsPanel.getMaximumVerticalScrollPosition() - revisionsPanel.getVerticalScrollPosition() <= 1) { // to avoid autoscrolling to selected item revisionsPanel.getElement().focus(); delegate.onScrolledToBottom(); } } }