Browse Source

REPORT-30352 在文本域的init方法里添加setMargin()

bugfix/10.0
Yuan.Wang 4 years ago
parent
commit
ca81c1854a
  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);
// Stuff needed by the caret listener below.
setMargin(getInsets());
previousCaretY = currentCaretY = getInsets().top;
// Stuff to highlight the current line.

Loading…
Cancel
Save