mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-202087 Broken indentation in editor (HiDPI)
this reverts commit 378a0352 (previous fix for IDEA-201625)
This commit is contained in:
@@ -362,10 +362,10 @@ public final class EditorUtil {
|
||||
if (tabSize <= 0) {
|
||||
return x + plainSpaceWidth;
|
||||
}
|
||||
float tabSizePixels = tabSize * plainSpaceWidth;
|
||||
tabSize *= plainSpaceWidth;
|
||||
|
||||
int nTabs = (int) (x / tabSizePixels);
|
||||
return (nTabs + 1) * tabSizePixels;
|
||||
int nTabs = (int) (x / tabSize);
|
||||
return (nTabs + 1) * tabSize;
|
||||
}
|
||||
|
||||
public static int textWidthInColumns(@NotNull Editor editor, @NotNull CharSequence text, int start, int end, int x) {
|
||||
|
||||
Reference in New Issue
Block a user