Steema Issues Database

Note: 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.



Bug 1119 - The ScrollBar tool WhenNeeded property changes the legend position when you scroll it and Legedn is aligned in the bottom.
Summary: The ScrollBar tool WhenNeeded property changes the legend position when you s...
Status: CONFIRMED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-04 10:11 EST by sandra pazos
Modified: 2015-02-05 11:33 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sandra pazos 2015-02-04 10:11:32 EST
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