Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (absolute)
Viewing all articles
Browse latest Browse all 6

Textarea positioning

$
0
0

Hi,

I'm creating an application and I was wondering if controls (expecifically textareas) can be positioned "one behind the other one". I've seen a lot of examples of textareas, but always have "top" or "botton" properties relative to the view.

I would like to know if there is possible to "push" different controls to a view and have them separated by some space. Something like using properties to define the space between the element and the last element:

view = new View();
view.push(button);
view.push(textarea1);
view.push(textarea2);
If I do this right now, I need to put "top" properties increasing for each control (5, 70, 125, ...) so they show one after the other. Is there a way I can position them relatively to the last inserted one?

Thanks a lot,

Luis Miguel


Viewing all articles
Browse latest Browse all 6


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>