If you add the menu as a child of the label itself, then the menu might not show up at all because the label will measure the text that it holds and create a dimension that fits the text only.
如果您将菜单添加为标签的子元素,那么菜单根本就不会显示,因为标签将仅度量它所包含的文本,然后创建一个符合文本的大小。
Dimension line with label that automatically changes to match length. Text position and extension lines are adjustable.
带自动匹配长度的标签的尺寸线。文本位置和延长线是可调整的。
Dimension line with label that automatically changes to match length.
带自动匹配长度的标签的尺寸线。
应用推荐