title: Flex DataGroup setting the height of the item renderer
body: <p>I've been playing around with renderers the last few days for a mobile application. I'm creating a gridlike renderer that has columns that is light weight for a mobile app. It is a bit of a poor man's datagrid. The layout is fine. The question I have is controlling the height of each row in the list.</p>
  
  <p>When measure() is called, I set the measuredHeight to:</p>
  
  <pre><code>  measuredHeight = getElementPreferredHeight(ld) + verticalPadding; 
  </code></pre>
  
  <p>where vertical padding is:</p>
  
  <pre><code>  var verticalPadding:Number = getStyle("paddingTop") + getStyle("paddingBottom");
  </code></pre>
  
  <p>When I debug on the desktop, the measuredHeight is set to 12 and on the device (Motorola Atrix), it is set to 12.</p>
  
  <p>But when layoutContents is called, the unscaledHeight is a number much larger than my measuredHeight value (44 on the device, 66 when running on the desktop), resulting in more vertical whitespace surrounding each item than I care to have.</p>
  
  <p>I'm certain I'm missing something but how do I control that row height? I happen to be using a Datagroup for this particular example but in some playing around I did with just a simple list, I had the same issue. Somewhere the system is overriding my measuredHeight with some other value.</p>
  
  <p>Any ideas?</p>
  
  <p>Randy</p>