Trying get rid of the scroll bars

- moved view classes instanciation into CREATION_COMPLETE triggered methods
This commit is contained in:
2025-11-24 18:15:47 +01:00
parent e8789829ae
commit a42a468070
8 changed files with 57 additions and 52 deletions
+9 -2
View File
@@ -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);
}
}