浏览代码

Fix TextInput selection height.

Yanrishatum 6 年之前
父节点
当前提交
2c6ee2832d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h2d/TextInput.hx

+ 1 - 1
h2d/TextInput.hx

@@ -255,7 +255,7 @@ class TextInput extends Text {
 		super.set_font(f);
 		cursorTile = h2d.Tile.fromColor(0xFFFFFF, 1, font.size);
 		cursorTile.dy = 2;
-		selectionTile = h2d.Tile.fromColor(0x3399FF, 0, font.lineHeight);
+		selectionTile = h2d.Tile.fromColor(0x3399FF, 0, hxd.Math.ceil(font.lineHeight));
 		return f;
 	}