bstouls 8 年之前
父节点
当前提交
75b43cb508
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      h2d/TextInput.hx

+ 4 - 0
h2d/TextInput.hx

@@ -109,6 +109,10 @@ class TextInput extends Text {
 		addChildAt(interactive, 0);
 	}
 
+	override function constraintSize(width:Float, height:Float) {
+		// disable (don't allow multiline textinput for now)
+	}
+
 	function handleKey( e : hxd.Event ) {
 		if( e.cancel || cursorIndex < 0 )
 			return;