简体   繁体   中英

Android and iOS inconsistencies for text in labels - appcelerator

I'm trying to lay out elements for a user profile using the appcelerator api. On iOS it automatically sets the height so all of the text is shown. The same code in android seems to cut off the bottom of the text, and I have to set a static height for it all to appear. I feel that this is somewhat backwards. Has anyone else had a similar problem?

If you set the height to "auto" for the parent element, it should be just fine. In both Android and iOS.

And of course, the height for the label needs to be also "auto" . Make sure to use quotes though, it doesn't know the variable auto

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM