boolean (SingleRowPassInfo data, TabLabel label, int length) { int tabCount = data.toLayout.size(); if (tabCount > 0) { Rectangle bounds = getStrategy().getLayoutRect(data, data.position, length); int tabsWidth = myTabs.getWidth(); bounds.width = tabsWidth / tabCount; if (myTabs.getIndexOf(label.getInfo()) == myTabs.getTabCount() - 1) { int fullWidth = bounds.width * tabCount; if (fullWidth < tabsWidth) { bounds.width += tabsWidth - fullWidth; } } myTabs.layout(label, bounds); label.setAlignmentToCenter(true); return true; } return super.applyTabLayout(data, label, length); }