List width not going to 100% - going crazy
I'm using Flex 4.6 and am working in making some simple lists. Each row is only expanding as far as the data within it - that is, the background and separator bars only go as wide as the data within the individual rows. I haven't really applied styling to it yet but I have started a component strucutre. I'm going crazy with this - any advice would be MUCH appreciated. I know I'm must be missing something obvious but I can no longer see the forest/trees/etc. Here's what I have.
In my HomeView I call the list (shown in bold below). I'm showing the parent containers all the way up to just under the main View in case it helps. I am not showing all closing tags - you get the picture:
<!-- scroller -->
<s:Scroller width="100%" height="100%"
horizontalScrollPolicy="off">
<!-- required b/c the scroller can only handle one component -->
<s:Group width="100%" height="100%" >
<s:layout >
<s:VerticalLayout gap="0" />
</s:layout>
<!-- events -->
<components:BBWHeaderSubComp label="Today's Calendar Events"/>
<components:BBWListComp width="100%"
labelField="subject"
itemRenderer="views.renderer.CalendarEventRenderer"
dataProvider="{journal}"/>
Which, as you can see, is a component. Here's the entire component:
<?xml version="1.0" encoding="utf-8"?>
<s:List xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
left="0" right="0"
top="0" bottom="0"
width="100%"
verticalScrollPolicy="off" horizontalScrollPolicy="off" >
<s:layout>
<s:VerticalLayout gap="0" requestedMinRowCount="1" />
</s:layout>
<fx:Declarations>
</fx:Declarations>
</s:List>
Thanks for helping.