简体   繁体   English

Android和iOS标签中文本的不一致-Appcelerator

[英]Android and iOS inconsistencies for text in labels - appcelerator

I'm trying to lay out elements for a user profile using the appcelerator api. 我正在尝试使用appcelerator api布局用户个人资料的元素。 On iOS it automatically sets the height so all of the text is shown. 在iOS上,它会自动设置高度,以便显示所有文本。 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. android中的相同代码似乎切断了文本的底部,我必须设置一个静态高度以使其全部显示。 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. 如果将父元素的高度设置为"auto" ,则应该很好。 In both Android and iOS. 在Android和iOS中。

And of course, the height for the label needs to be also "auto" . 当然,标签的高度也必须为"auto" Make sure to use quotes though, it doesn't know the variable auto 但是请确保使用引号,因为它不知道变量auto

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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