Page 1 of 1

Problem with gradient background after upg to 4.1.2014.12150

Posted: Thu Feb 12, 2015 7:28 am
by 15671020
Hey

I have a problem with the gradient background of a chart after I have upgraded from 4.1.2014.08120 to 4.1.2014.12150 - it looks like the background ain't repainted correctly when the chart is resized, both when resized as a result of an "external" event and when resized by adding data (the graph area will resize to make room for the added labels etc.).

The problem can best be described by the following images (see the red top in one of the images) - in addition to the displaced gradient in the images the problem can also be observed when the charts are enlarged - when enlarged the gradient pattern will just be repeated and not resized to match the chart.


How it looks in 12150
Image


And how it should look and do look in 08120 - when using 12150 the chart also looks like this until resized.
Image


- please ignore my "alternative" color choice it's only to clarify the problem :D

I have attached the source used to generate the images.

I have testet the following:
  • ATI vs nVidia GPUs
  • 32 bit vs 64 bit
  • .NET 4.0 vs .NET 4.5.1
  • All Gradient.WrapModes
/Claus

Re: Problem with gradient background after upg to 4.1.2014.12150

Posted: Thu Feb 12, 2015 9:29 am
by Christopher
Hello,

Yes, unfortunately this is a regression that has already been fixed for the next maintenance release. Fortunately it has an easy, one line workaround, which is:

Code: Select all

Utils.UseCaches = false;

Re: Problem with gradient background after upg to 4.1.2014.12150

Posted: Mon Feb 16, 2015 6:44 am
by 15671020
Thanks! - it works correctly without the cache

/Claus