Procházet zdrojové kódy

fixed textinput within mask

Nicolas Cannasse před 3 roky
rodič
revize
60e66bc92f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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) ) {