Added an AnchorLayout to the MainPanel and set the layout data poroperty of the StackNavigator to AnchorLayoutData.fill()
This commit is contained in:
@@ -49,7 +49,7 @@ class MainHeader extends LayoutGroup {
|
||||
var l:HorizontalLayout = new HorizontalLayout();
|
||||
l.paddingLeft = l.paddingRight = Std.int(headerHeight * .1);
|
||||
l.paddingTop = l.paddingBottom = Std.int(headerHeight * .1);
|
||||
//l.verticalAlign = MIDDLE;
|
||||
l.verticalAlign = MIDDLE;
|
||||
layout = l;
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ class MainHeader extends LayoutGroup {
|
||||
lbl1.text = Constants.MENU_ITEM_0_STRING;
|
||||
lbl1.embedFonts = true;
|
||||
var fnt:Font = Assets.getFont(Constants.MONTSERRAT_MEDIUM_500);
|
||||
lbl1.textFormat = new TextFormat(fnt.fontName, Std.int(headerHeight * .4), Constants.MAIN_COLOR3);
|
||||
lbl1.textFormat = new TextFormat(fnt.fontName, Std.int(headerHeight * .3), Constants.MAIN_COLOR3);
|
||||
addChild(lbl1);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user