1

I created a PanelScreen from feathers.controls. However, I feel like I can only change the width of its header, How can I change the height of its header?

for example:

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
Josh Tynjala
  • 5,235
  • 3
  • 23
  • 25
uni star
  • 11
  • 2

1 Answers1

2

you need to change the panel's headerFactory like this

panel.headerFactory = function():Header
{
    var header:Header = new Header();
    header.height = 100;
    return header;
};
Josh Tynjala
  • 5,235
  • 3
  • 23
  • 25
Karlus da Wakoko
  • 321
  • 3
  • 15