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
+6 -4
View File
@@ -1,5 +1,6 @@
package view;
import feathers.layout.AutoSizeMode;
import feathers.controls.ListView;
import feathers.events.FeathersEvent;
import model.AppModelLocator;
@@ -12,8 +13,9 @@ class RidersList extends ListView {
public function new() {
super();
addEventListener(FeathersEvent.CREATION_COMPLETE, onCreationComplete);
width = 300;
height = 400;
//width = 300;
//height = 400;
}
override private function initialize():Void {
@@ -24,15 +26,15 @@ class RidersList extends ListView {
}
private function onCreationComplete(event:FeathersEvent):Void {
traceBlue(this + " --> onCreationComplete()");
traceBlue(this + " --> onCreationComplete() - w: " + width + " h: " + height );
}
private function onRideListDpChange(e:Event):Void {
traceGreen(this + " : onRideListDpChange");
dataProvider = model.ridersListDP;
itemToText = function(item:Dynamic):String {
return item.firstName;
};
traceGreen(this + " --> onRideListDpChange() - w: " + width + " h: " + height );
}
}