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 116

Summary: ScrollPager doesn't let the chart resize
Product: FireMonkey TeeChart Reporter: narcís calvet <narcis>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: chris, david, wave
Priority: ---    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: All   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14513
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: FMX project with a series and ScrollPager tool

Description narcís calvet 2013-11-20 04:36:38 EST
Created attachment 20 [details]
FMX project with a series and ScrollPager tool

Having a Firemonkey project with a TScrollPagerTool, doesn't let the chart resize when the form is resized and the chart is aligned to alClient. Attached a simple example project reproducing this.
Comment 1 christopher ireland 2013-11-20 04:50:59 EST
Maybe this is related to .NET issue 72:
http://bugs.teechart.net/show_bug.cgi?id=72
Comment 2 narcís calvet 2013-11-20 05:12:49 EST
No, this doesn't work here. Actually, ScrollPager tool resizes correctly in a VCL project but doesn't in a Firemonkey project.
Comment 3 david berneda 2013-11-29 12:25:02 EST
I get the same problem in VCL and FireMonkey with latest sources. 
When chart is resized, layout is not reconstructed.

There is a workaround but it'd be better if the tool can do it internally automatically, remembering the "old" chart size and resizing if different.

procedure TForm1.Chart1Resize(Sender: TObject);
begin
  ChartTool1.SetUpScrollPager;
end;
Comment 4 david berneda 2013-11-29 12:46:04 EST
Fixed. When the chart is resized (or maximized), the scrollpager tool will re-layout.

Still pending to find a good way to improve the alignment of both axes (the main chart and the scrollpager subchart).  Right now the margins are hardcoded (ie:  25 pixels horizontal, etc), so when for example an axis labels font size is bigger than the other, the alignment is not perfect.