mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-154724 ui: fix editor code lens if there are no toolwindows on the left
This commit is contained in:
+1
-3
@@ -51,8 +51,6 @@ import com.intellij.openapi.util.ProperTextRange;
|
||||
import com.intellij.openapi.util.SystemInfo;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.wm.ToolWindowAnchor;
|
||||
import com.intellij.openapi.wm.ex.ToolWindowManagerEx;
|
||||
import com.intellij.ui.*;
|
||||
import com.intellij.ui.awt.RelativePoint;
|
||||
import com.intellij.util.Alarm;
|
||||
@@ -1213,7 +1211,7 @@ public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark
|
||||
public Dimension getPreferredSize() {
|
||||
int width = myEditor.getGutterComponentEx().getWidth() + myEditor.getScrollingModel().getVisibleArea().width
|
||||
- myEditor.getVerticalScrollBar().getWidth();
|
||||
if (!ToolWindowManagerEx.getInstanceEx(myEditor.getProject()).getIdsOn(ToolWindowAnchor.LEFT).isEmpty()) width--;
|
||||
width--;
|
||||
return new Dimension(width - BalloonImpl.POINTER_WIDTH, myEditor.getLineHeight() * (myEndVisualLine - myStartVisualLine));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user