Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个标签,我想增加左侧的宽度而不是默认的右侧。而且我不想将标签从当前位置移动,而只是向左增加其宽度。
您可以简单地设置固定右边距:
Titanium.UI.createLabel ({ width: 70, height: 40, right: 30, //your value //.... });
然后,如果您增加标签的宽度,它只会延伸到左侧。