void (@Nullable SingleRowPassInfo data) { if (data == null) { return; } if (data.requiredLength < data.toFitLength) { myScrollOffset = 0; } else { int max = data.requiredLength - data.toFitLength + getMoreRectAxisSize(); Insets actionInsets = myTabs.getActionsInsets(); max += myTabs.isHorizontalTabs() ? actionInsets.left + actionInsets.right : actionInsets.top + actionInsets.bottom; if (!ExperimentalUI.isNewUI() && getStrategy() instanceof SingleRowLayoutStrategy.Vertical) { max += data.entryPointAxisSize; } myScrollOffset = Math.max(0, Math.min(myScrollOffset, max)); } }