Flex 4火花面板有一个丑陋的灰色顶部

at.*_*at. 4 apache-flex panel actionscript-3 flex4

我有一个Flex 4火花面板,我通过PopUpManager弹出,但它有一个灰色部分在顶部,我无法摆脱.那是什么以及如何删除它?

更新:示例小组如下.我只是打电话PopUpManager.addPopUp(new TestPanel(), background, true);给它,并在按钮上方接收那个坚固的灰色条.

<s:Panel xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         dropShadowVisible="false"
         backgroundAlpha="0"
         controlBarVisible="false"
         borderVisible="false">
    <s:VGroup>
        <s:Button label="A button" width="150" height="55"/>
    </s:VGroup>
</s:Panel>
Run Code Online (Sandbox Code Playgroud)

Bri*_*sio 12

所以,这就是我做到的.我做了一个自定义皮肤:HeaderlessPanelSkin.as

public class HeaderlessPanelSkin extends PanelSkin {
   public function HeaderlessPanelSkin() {
        super();

        topGroup.includeInLayout = false;
    }
}
Run Code Online (Sandbox Code Playgroud)

然后,在面板中,我只是引用了新皮肤: skinClass="HeaderlessPanelSkin"

应该这样做:)