Question

Whenever I add paddingRight to a column in the flex grid, it adds the padding to the header as well. Is anyone familiar with how I can add paddingRight just to the column and not to the header? Below is the column code where I was specifying the padding.

<mx:DataGridColumn width="60" headerText="Type" dataField="Grade" headerStyleName="headerLeft" textAlign="left"  draggable="false" resizable="false" headerRenderer="GridHeaderRenderer" paddingRight="5"/>
Was it helpful?

Solution

Set the paddingRight on the column, then for the header, override the header's paddingRight in the headerStyleName. (note this won't work for paddingTop or paddingBottom)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top