Trying get rid of the scroll bars
- moved view classes instanciation into CREATION_COMPLETE triggered methods
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user