Skip to main content
gautams4173
February 17, 2023
Question

TextField size

  • February 17, 2023
  • 3 replies
  • 0 views

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
February 17, 2023

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

gautams4173
February 17, 2023

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

harshitb6843
February 17, 2023

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"