I am using
cacheAsBitmap = true;
opaqueBackground = 0xFF0000;
in an itemRenderer
and I am overriding drawBackground() and drawing inside....
var matrix:Matrix = new Matrix();
matrix.createGradientBox(getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight(), Math.PI/2, 0, 1);
graphics.beginGradientFill(GradientType.LINEAR, [startColor, middleColor, endColor], [1, 1, 1], [0, 191, 255], matrix);
graphics.drawRect(0, 0, getExplicitOrMeasuredWidth(), getExplicitOrMeasuredHeight());
Everything is fine but I have a 1px "boder" in red from the opaque background on the top and on the right...
Anyone an idea why this happens?
After a lot of testing setting
in the list solved my problem - which seems to me very strange...
Bevore I did this air painted the alternatingItemColor over the end of the previous item in the list which was the "border" on the side (the top-border was another problem....)
PS: So I had a horizontalLayout in the list, gap was 0 - paddings all 0...