mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-65613 Wrong EditorTextField initial size in several places in UI
Editor size calculation algorithm is corrected in order to have one line height as a minimum preferred size height value (used to return zero-height for the empty document)
This commit is contained in:
@@ -5552,7 +5552,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
maxWidth = Math.max(maxWidth, myLineWidths.getQuick(i));
|
||||
}
|
||||
|
||||
mySize = new Dimension(maxWidth, getLineHeight() * getVisibleLineCount());
|
||||
mySize = new Dimension(maxWidth, getLineHeight() * Math.max(getVisibleLineCount(), 1));
|
||||
|
||||
myIsDirty = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user