[platform] EA-753700 tabbed pane ui: do not request tab html view in invalid state

GitOrigin-RevId: 70595fe2b2a5e81f1d31237d7ecbc2a2677b9436
This commit is contained in:
Konstantin Aleev
2023-10-26 16:02:45 +02:00
committed by intellij-monorepo-bot
parent 6f3501f3c2
commit 92a61bb5cf

View File

@@ -394,6 +394,14 @@ public class DarculaTabbedPaneUI extends BasicTabbedPaneUI {
};
}
@Override
protected View getTextViewForTab(int tabIndex) {
if (tabPane.isValid()) {
return super.getTextViewForTab(tabIndex);
}
return null;
}
@Override
protected int getTabLabelShiftX(int tabPlacement, int tabIndex, boolean isSelected) {
int delta = SELECTION_HEIGHT.get();