Explorar o código

Fix TextInput selection height.

Yanrishatum %!s(int64=6) %!d(string=hai) anos
pai
achega
2c6ee2832d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 	}