Skip to main content
gautams4173
Known Participant
Feb 17, 2023 4:29 AM UTC
Question

TextField size

Hi

When I use a text field, by default it occupies the entire width of the page horizontally. But it looks bad in the interface. Is there a way other than wrapping it in a column / sidebyside layout to reduce the size of the text field ??

3 replies

harshitb6843
Brainy
Feb 17, 2023 5:23 AM UTC

a!textField() will consume whatever space is available in the parent. So adding a column layout or sidebyside layout should help!!

gautams4173
Known Participant
Feb 17, 2023 5:25 AM UTC

Yes, I knew about the enclosing the textField inside the parent. Was just looking if there is an alternative way to do it

harshitb6843
Brainy
Feb 17, 2023 5:29 AM UTC

Nope. Sadly, no alternative to this. And btw, this statement is true for all the components not just textField..

'a!textField() will consume whatever space is available in the parent"