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.
如果您将菜单添加为标签的子元素,那么菜单根本就不会显示,因为标签将仅度量它所包含的文本,然后创建一个符合文本的大小。
With young children pick an appropriate restaurant where the service is prompt rather than leisurely and where something the child will enjoy is on the menu.
你应该选择一家合适的餐厅,那儿的服务应是迅捷而非懒散的,并且孩子能在这里找到爱吃的东西。
For example, if you add the menu as a child of the label's parent, then Flex would place the control vertically beneath that point because that is VBox's default behavior.
例如,如果您将菜单添加为标签的父元素的子元素,那么Flex就将控件垂直放置在该点的下面,因为这是VBox的默认行为。
应用推荐