![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | The ScrollBar tool WhenNeeded property changes the legend position when you scroll it and Legedn is aligned in the bottom. | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | sandra pazos <sandra> |
| Component: | Tools | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | mdegroof |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
The ScrollBar tool WhenNeeded property changes the legend position when you scroll it and Legend is aligned in the bottom. Basically, seems that legend ‘jumps’ when it is scrolled to right. The space underneath the legend becomes bigger, too. If you fix the MaxNumRow the problem still occurs. The code below reproduces the problem: private void InitializeChart() { tChart1.Aspect.View3D = false; tChart1.Dock = DockStyle.Fill; for (int i = 0; i < 30; i++) { new Steema.TeeChart.Styles.Line(tChart1.Chart); tChart1[i].FillSampleValues(10); } Steema.TeeChart.Tools.LegendScrollBar tool1 = new Steema.TeeChart.Tools.LegendScrollBar(tChart1.Chart); tool1.DrawStyle = Steema.TeeChart.Tools.ScrollBarDrawStyle.WhenNeeded; tool1.Horizontal = true; tChart1.Legend.MaxNumRows = 2; tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom; } The problem occurs in VCL. Here’s the bug number: http://bugs.teechart.net/show_bug.cgi?id=1117