Browse Source

Pull request #1898: REPORT-30352 在文本域的init方法里添加setMargin()

Merge in DESIGN/design from ~YUAN.WANG/design:bugfix/10.0 to bugfix/10.0

* commit '522763dc823ad2f3d0a15f23df9a11822b0d8c67':
  REPORT-30352 在文本域的init方法里添加setMargin()
bugfix/10.0
Yuan.Wang 4 years ago
parent
commit
d682e930c1
  1. 1
      designer-base/src/main/java/com/fr/design/gui/syntax/ui/rtextarea/RTextAreaBase.java

1
designer-base/src/main/java/com/fr/design/gui/syntax/ui/rtextarea/RTextAreaBase.java

@ -645,6 +645,7 @@ int currentCaretY; // Used to know when to rehighlight current line.
setTabsEmulated(false); setTabsEmulated(false);
// Stuff needed by the caret listener below. // Stuff needed by the caret listener below.
setMargin(getInsets());
previousCaretY = currentCaretY = getInsets().top; previousCaretY = currentCaretY = getInsets().top;
// Stuff to highlight the current line. // Stuff to highlight the current line.

Loading…
Cancel
Save