mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
painting glitch in bottom tabs
This commit is contained in:
@@ -271,7 +271,7 @@ public class JBEditorTabs extends JBTabsImpl {
|
||||
|
||||
shape.labelBottomY = shape.labelPath.getMaxY() - shape.labelPath.deltaY(getActiveTabUnderlineHeight() - 1);
|
||||
shape.labelTopY =
|
||||
shape.labelPath.getY() + (getPosition() == JBTabsPosition.top || getPosition() == JBTabsPosition.bottom ? shape.labelPath.deltaY(1) : 0) ;
|
||||
shape.labelPath.getY() + (getPosition() == JBTabsPosition.top ? shape.labelPath.deltaY(1) : 0) ;
|
||||
shape.labelLeftX = shape.labelPath.getX() + (getPosition() == JBTabsPosition.top || getPosition() == JBTabsPosition.bottom ? 0 : shape.labelPath.deltaX(
|
||||
1));
|
||||
shape.labelRightX = shape.labelPath.getMaxX() - shape.labelPath.deltaX(1);
|
||||
|
||||
+2
-1
@@ -16,6 +16,7 @@
|
||||
package com.intellij.ui.tabs.impl.singleRow;
|
||||
|
||||
import com.intellij.icons.AllIcons;
|
||||
import com.intellij.ui.tabs.JBTabsPosition;
|
||||
import com.intellij.ui.tabs.impl.JBTabsImpl;
|
||||
import com.intellij.ui.tabs.impl.ShapeTransform;
|
||||
import com.intellij.ui.tabs.impl.TabLabel;
|
||||
@@ -136,7 +137,7 @@ public abstract class SingleRowLayoutStrategy {
|
||||
}
|
||||
|
||||
public Rectangle getLayoutRec(final int position, final int fixedPos, final int length, final int fixedFitLength) {
|
||||
return new Rectangle(position, fixedPos, length, fixedFitLength);
|
||||
return new Rectangle(position, fixedPos + (myTabs.getTabsPosition() == JBTabsPosition.bottom ? 1 : 0), length, fixedFitLength);
|
||||
}
|
||||
|
||||
public int getStartPosition(final SingleRowPassInfo data) {
|
||||
|
||||
Reference in New Issue
Block a user