Browse Source

REPORT-38681 向右再移动一个位置 避免光标太接近文字内容

feature/big-screen
hades 4 years ago
parent
commit
6dbedac773
  1. 3
      designer-base/src/main/java/com/fr/design/gui/syntax/ui/rtextarea/ConfigurableCaret.java

3
designer-base/src/main/java/com/fr/design/gui/syntax/ui/rtextarea/ConfigurableCaret.java

@ -457,7 +457,8 @@ public class ConfigurableCaret extends DefaultCaret {
case THICK_VERTICAL_LINE_STYLE:
Graphics2D g2 = (Graphics2D) g;
g2.setStroke(new BasicStroke(2));
g2.draw(new Line2D.Float(r.x, r.y, r.x, r.y + r.height));
// 向右再移动一个位置 避免光标太接近文字内容
g2.draw(new Line2D.Float(r.x + 1, r.y, r.x + 1, r.y + r.height));
break;
} // End of switch (style).

Loading…
Cancel
Save