我从feathers.controls创建了一个panelScreen。但是,我觉得我只能更改其标题的宽度,如何更改标题的高度?
例如:
var layout:PanelScreen=new PanelScreen;
layout.title = 'mm';
this.addChild(layout);
layout.validate();
layout.width = 100; // it works
layout.height = 100; // it doesn't work
答案 0 :(得分:0)
您需要像这样更改面板的headerFactory
panel.headerFactory = function():Header
{
var header:Header = new Header();
header.width = 100;
header.height = 100;
return header;
}