void (@Nullable TablePassInfo data) { if (data == null) { return; } if (data.requiredLength < data.toFitRec.width) { myScrollOffset = 0; } else { int entryPointsWidth = data.moreRect.y == data.entryPointRect.y ? data.entryPointRect.width + 1 : 0; myScrollOffset = Math.max(0, Math.min(myScrollOffset, data.requiredLength - data.toFitRec.width + data.moreRect.width + entryPointsWidth /*+ (1 + myTabs.getIndexOf(myTabs.getSelectedInfo())) * myTabs.getBorderThickness()*/+ data.titleRect.width)); } }