JBTextArea: fix height for error reporting (IDEA-CR-52590)

GitOrigin-RevId: 38affbcb8161ca35e60ad83890993fc4fe9d5c7d
This commit is contained in:
Tagir Valeev
2019-10-11 05:04:57 +00:00
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);