Trying get rid of the scroll bars
- moved view classes instanciation into CREATION_COMPLETE triggered methods
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package view;
|
||||
|
||||
import feathers.events.FeathersEvent;
|
||||
import feathers.layout.VerticalLayout;
|
||||
import feathers.controls.ScrollContainer;
|
||||
import t9.util.ColorTraces.*;
|
||||
|
||||
class RidersScreen extends ScrollContainer {
|
||||
|
||||
@@ -10,6 +12,7 @@ class RidersScreen extends ScrollContainer {
|
||||
|
||||
public function new() {
|
||||
super();
|
||||
addEventListener(FeathersEvent.CREATION_COMPLETE, onCreationComplete);
|
||||
}
|
||||
|
||||
override private function initialize():Void {
|
||||
@@ -19,11 +22,15 @@ class RidersScreen extends ScrollContainer {
|
||||
vl.verticalAlign = TOP;
|
||||
layout = vl;
|
||||
|
||||
tb = new ToolBar();
|
||||
}
|
||||
|
||||
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