Added an AnchorLayout to the MainPanel and set the layout data poroperty of the StackNavigator to AnchorLayoutData.fill()
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package view;
|
||||
|
||||
import feathers.layout.AnchorLayoutData;
|
||||
import feathers.layout.AnchorLayout;
|
||||
import feathers.events.FeathersEvent;
|
||||
import feathers.layout.VerticalLayout;
|
||||
import feathers.controls.ScrollContainer;
|
||||
@@ -18,19 +20,20 @@ class RidersScreen extends ScrollContainer {
|
||||
override private function initialize():Void {
|
||||
super.initialize();
|
||||
|
||||
var vl:VerticalLayout = new VerticalLayout();
|
||||
vl.verticalAlign = TOP;
|
||||
layout = vl;
|
||||
layout = new AnchorLayout();
|
||||
|
||||
tb = new ToolBar();
|
||||
tb.layoutData = AnchorLayoutData.fillHorizontal();
|
||||
addChild(tb);
|
||||
|
||||
rl = new RidersList();
|
||||
rl.layoutData = AnchorLayoutData.fillHorizontal();
|
||||
rl.y = 80;
|
||||
addChild(rl);
|
||||
|
||||
}
|
||||
|
||||
private function onCreationComplete(event:FeathersEvent):Void {
|
||||
traceBlue(this + " --> onCreationComplete() - w: " + width + " h: " + height );
|
||||
|
||||
tb = new ToolBar();
|
||||
addChild(tb);
|
||||
|
||||
rl = new RidersList();
|
||||
addChild(rl);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user