wiln / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

BackgroundItems not rendered correctly on small zoom values #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Choose a large timeframe like 3 months.
2. Add weekends as background items.
3. Scroll zoom slider to 75 or lower.

What is the expected output? What do you see instead?
Weekends should get smaller or even disappear but instead there appear big
weekend blocks that cover week or even months.

What version of the product are you using? On what operating system?
Flex 3, Mozilla Firefox, Win XP.

Please provide any additional information below.
I guess the problem is caused by the calculations in the BackgroundLayout
class but I'm not sure.

Original issue reported on code.google.com by henry.h...@gmail.com on 11 Jul 2008 at 11:25

GoogleCodeExporter commented 9 years ago
Sorry, this Issue was tracked for the Scheduling Framework, I forgot to mention 
that.

Original comment by henry.h...@gmail.com on 11 Jul 2008 at 11:31

GoogleCodeExporter commented 9 years ago

Original comment by dmcc...@gmail.com on 8 Jan 2009 at 5:27

GoogleCodeExporter commented 9 years ago
My solution: AbstractGradientScheduleEntryRenderer inside renderers folder

if (gradientChanged)
{
 var fillColors:Array = getStyle("fillColors");
 var cornerRadius:int = getStyle("cornerRadius");
 var matrix:Matrix = new Matrix();
 matrix.createGradientBox(unscaledWidth, unscaledHeight, 90);

 graphics.clear();

just add graphics.clear(); after matrix.createGradientBox(unscaledWidth, 
unscaledHeight, 90);

Original comment by michallu...@gmail.com on 22 Dec 2011 at 8:19