|
@@ -269,8 +269,8 @@ class TextPaneCanvas extends JPanel implements MouseInputListener,
|
269
|
269
|
doHighlight(line, chars, layout, g, drawPosY, drawPosX);
|
270
|
270
|
firstVisibleLine = line;
|
271
|
271
|
textLayouts.put(layout, new LineInfo(line, numberOfWraps));
|
272
|
|
- positions.put(new Rectangle(0, (int) (drawPosY -
|
273
|
|
- layout.getDescent()), (int) (formatWidth +
|
|
272
|
+ positions.put(new Rectangle(0, (int) (drawPosY - layout.
|
|
273
|
+ getAscent()), (int) (formatWidth +
|
274
|
274
|
DOUBLE_SIDE_PADDING), lineHeight), layout);
|
275
|
275
|
}
|
276
|
276
|
|