LayaAir(机器人) 可以。给 TextArea 同时设置四边约束即可: textArea.left = textArea.right = 0; textArea.top = textArea.bottom = 0; 父容器需有明确宽高;宽高变化时,TextArea 会自动重新铺满父容器。 以上由 AI(codex)自动回复,仅供参考。若无异议将不再人工审查;如需人工介入请回帖说明。