# Text Input for PlayCanvas UI

**URL:** <https://forum.playcanvas.com/t/text-input-for-playcanvas-ui/28304>\
**Category:** Useful Resources\
**Tags:** ui\
**Created:** [November 9, 2022, 11:43pm UTC](https://forum.playcanvas.com/t/text-input-for-playcanvas-ui/28304 "2022-11-09T23:43:37Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [November 11, 2022, 1:31pm UTC](https://forum.playcanvas.com/t/text-input-for-playcanvas-ui/28304/9 "2022-11-11T13:31:58Z")

</div>

> [@Marks](#):
>
> I see, I thought one of the goals of your text input was to work more like the HTML forms, where the UI doesn’t resize and it scrolls to the input field.

Nope, just a way to enter text via the PlayCanvas rather than to resort to a pure HTML5 UI/form.

> [@Marks](#):
>
> What if it was possible to tell PlayCanvas **not** to resize the canvas?

It’s should technically be possible now by changing the fillMode to fixed and giving it the desired height/width: [https://developer.playcanvas.com/api/pc.Application.html#setCanvasFillMode](https://developer.playcanvas.com/api/pc.Application.html#setCanvasFillMode)

It may need a bit of CSS work that’s been mentioned in this post as switching between fill modes is not a common use case and there may be a few issues: [https://forum.playcanvas.com/t/solved-trying-to-switch-between-fill-mode-to-keep-aspect-ratio/26874](https://forum.playcanvas.com/t/solved-trying-to-switch-between-fill-mode-to-keep-aspect-ratio/26874)

However, this doesn’t work in this case of my project because you can hide the keyboard with the input box still up and iOS does funny things with innerHeight/innerWidth.

It would also mean that it could look odd if they hid the keyboard and resized the window, change orientation etc.

---

_[View the full topic](https://forum.playcanvas.com/t/text-input-for-playcanvas-ui/28304)._
