I am currently working on a mobile app and I am stuck with a List height problem.
My app consists of a header which represents 10% of the available height and just below, there is a ScreenNavigator that contains 4 Screen instances. For each of them, I'd like to use a vertical percentage based layout so that children components would auto resize depending on the height of the ScreenNavigator, but I can't figure out how to get this height value.
In one Screen instance I tried something like that but it doesn't work:
button1.layoutData = new VerticalLayoutData(100, 10);
button2.layoutData = new VerticalLayoutData(100, 10);
list.layoutData = new VerticalLayoutData(100, 80);
The buttons are ok but the List is way out of the screen bottom.
Do I have to manually set the size of the components ? In that case, how can I get the Screen height ? (I tried to measure after validate() method but it returns 0). I think there is something I don't get about the layout in Feathers components, any help would be appreciated !