Pan- Please log a bug or enhancement request for Flex SDK here: https://bugs.adobe.com/jira thanks -Mac
On 3/5/08 8:47 AM, "Pan Troglodytes" <[EMAIL PROTECTED]> wrote: > > > > > That worked, thanks. I don't particularly think it SHOULD, though. It seems > weird to set the paddingTop/Bottom for a grid when you want the padding for > each row. If you set the paddingLeft/Right properties, they don't apply to > each column but instead apply to the grid. If it was a VBox, those padding > properties would apply only to the whole box, not as padding between the > controls. That's what verticalGap is for. Kind of inconsistent, don't you > think? Seems like there should probably be column level padding properties, > possibly with a separate verticalGap property on the grid. How would you go > about setting a paddingTop for a grid, without having to throw in a kludge > where you embedded it in another control and used its padding property? > > On Wed, Mar 5, 2008 at 10:32 AM, Mac Martine <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Try setting paddingTop and paddingBottom both to 0 >> >> Mac >> >> >> >> On 3/5/08 8:27 AM, "Pan Troglodytes" <[EMAIL PROTECTED]> wrote: >> >>> >>> >>> >>> >>> Given the following example: >>> >>> <?xml version="1.0" encoding="utf-8"?> >>> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical"> >>> <mx:DataGrid dataProvider="{[{x:1}, {x:2}, {x:3}]}"> >>> <mx:columns> >>> <mx:DataGridColumn dataField="x" backgroundColor="blue"> >>> <mx:itemRenderer> >>> <mx:Component> >>> <mx:Canvas width="100%" height="100%" backgroundColor="red"> >>> <mx:Text width="100%" height="100%" text="{data.x}"/> >>> </mx:Canvas> >>> </mx:Component> >>> </mx:itemRenderer> >>> </mx:DataGridColumn> >>> </mx:columns> >>> </mx:DataGrid> >>> </mx:Application> >>> >>> >>> It shows up as red rows with blue gaps between each row. I don't want the >>> blue gaps there. I put those height/widths in to try to avoid it. I can't >>> find any style that seems applicable. I get the same results using >>> AdvancedDataGrid. Any solutions? >> >> >> > >

