mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix typo in method name
This commit is contained in:
@@ -81,7 +81,7 @@ public class TabLabel extends JPanel {
|
||||
myLabelPlaceholder.setOpaque(false);
|
||||
add(myLabelPlaceholder, BorderLayout.CENTER);
|
||||
|
||||
setAligmentToCenter(true);
|
||||
setAlignmentToCenter(true);
|
||||
|
||||
myIcon = new LayeredIcon(2);
|
||||
|
||||
@@ -124,7 +124,7 @@ public class TabLabel extends JPanel {
|
||||
return insets;
|
||||
}
|
||||
|
||||
public void setAligmentToCenter(boolean toCenter) {
|
||||
public void setAlignmentToCenter(boolean toCenter) {
|
||||
if (myCentered == toCenter && myLabel.getParent() != null) return;
|
||||
|
||||
myLabelPlaceholder.removeAll();
|
||||
|
||||
@@ -224,7 +224,7 @@ public class SingleRowLayout extends TabLayout {
|
||||
myTabs.layout(label, rec);
|
||||
}
|
||||
|
||||
label.setAligmentToCenter((deltaToFit > 0 || myTabs.isEditorTabs()) && getStrategy().isToCenterTextWhenStretched());
|
||||
label.setAlignmentToCenter((deltaToFit > 0 || myTabs.isEditorTabs()) && getStrategy().isToCenterTextWhenStretched());
|
||||
|
||||
data.position = getStrategy().getMaxPosition(label.getBounds());
|
||||
data.position += myTabs.getInterTabSpaceLength();
|
||||
|
||||
@@ -158,7 +158,7 @@ public class TableLayout extends TabLayout {
|
||||
}
|
||||
|
||||
myTabs.layout(label, eachX, eachY, width, row < data.table.size() - 1 ? myTabs.myHeaderFitSize.height - tabUnderlineFix : myTabs.myHeaderFitSize.height);
|
||||
label.setAligmentToCenter(deltaToFit > 0);
|
||||
label.setAlignmentToCenter(deltaToFit > 0);
|
||||
|
||||
boolean lastCell = i == eachRow.myColumns.size() - 1;
|
||||
eachX += width + (lastCell ? 0 : myTabs.getInterTabSpaceLength());
|
||||
|
||||
Reference in New Issue
Block a user