Picture of Petra Nussdorfer
Height of Textarea
by Petra Nussdorfer - Thursday, 15 May 2014, 10:07 AM
 

Hi everybody, 

we are working on the openTextInput component and we wanted to ask the community how we should set the height of the textarea. 

1. Should the author have the possibility to set the height (e.g with numerical value or predefined sizes like s/m/l)?

2. Form the technical point of view, should we implement the size with px or percentage?

 

Greetings from Vienna

Picture of Daryl Hedley
Re: Height of Textarea
by Daryl Hedley - Friday, 16 May 2014, 3:36 PM
 

Hey Petra,

From a technical point of view a percentage height won't work. However it would be nice to have something like the following:

textAreaSize: 'small'

textAreaSize: 'medium'

textAreaSize: 'large'

textAreaSize: 300

It should be done it pixels as most of our designs and layout is done with either percentages or pixels and as percentages won't work in this instance it's best to use pixels. Maybe there's also a default?

Thanks,

Daryl

Picture of Adam Laird
Re: Height of Textarea
by Adam Laird - Monday, 19 May 2014, 1:45 PM
 

would not lines, taking into account the em of the line size be better to allow for different themes?