mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
JBTextArea: fix height for error reporting (IDEA-CR-52590)
GitOrigin-RevId: 38affbcb8161ca35e60ad83890993fc4fe9d5c7d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
04fa97b3a4
commit
cfe5480e02
@@ -62,6 +62,7 @@ public class JBTextArea extends JTextArea implements ComponentWithEmptyText {
|
||||
Insets margin = ObjectUtils.notNull(getMargin(), JBUI.emptyInsets());
|
||||
Insets ipad = getComponent().getIpad();
|
||||
Dimension size = getSize();
|
||||
size.height = getPreferredSize().height;
|
||||
int left = insets.left + margin.left - ipad.left;
|
||||
int top = insets.top + margin.top - ipad.top;
|
||||
int right = size.width - (insets.right + margin.right - ipad.right);
|
||||
|
||||
Reference in New Issue
Block a user