Browse Source

fixed textinput within mask

Nicolas Cannasse 3 years ago
parent
commit
60e66bc92f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      h2d/TextInput.hx

+ 1 - 1
h2d/TextInput.hx

@@ -372,7 +372,7 @@ class TextInput extends Text {
 	override function draw(ctx:RenderContext) {
 		if( inputWidth != null ) {
 			var h = localToGlobal(new h2d.col.Point(inputWidth, font.lineHeight));
-			ctx.pushRenderZone(absX, absY, h.x - absX, h.y - absY);
+			ctx.clipRenderZone(absX, absY, h.x - absX, h.y - absY);
 		}
 
 		if( cursorIndex >= 0 && (text != cursorText || cursorIndex != cursorXIndex) ) {