@Override
  public int getScrollExtent() {
    if (tabs.isHorizontalTabs()) {
      return !moreRect.isEmpty() ? moreRect.x - tabs.getActionsInsets().left
             : !entryPointRect.isEmpty() ? entryPointRect.x - tabs.getActionsInsets().left
             : layoutSize.width;
    }
    else {
      if (ExperimentalUI.isNewUI()) {
        return layoutSize.height;
      }
      return !moreRect.isEmpty() ? moreRect.y - tabs.getActionsInsets().top
             : !entryPointRect.isEmpty() ? entryPointRect.y - tabs.getActionsInsets().top
             : layoutSize.height;
    }
  }
@Override
  public int getScrollExtent()