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 - ScrollPager doesn't let the chart resize
Summary: ScrollPager doesn't let the chart resize
Status: RESOLVED FIXED
Alias: None
Product: FireMonkey TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 131119
Hardware: PC All
: --- major
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-20 04:36 EST by narcís calvet
Modified: 2013-11-29 12:46 EST (History)
3 users (show)

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


Attachments
FMX project with a series and ScrollPager tool (56.33 KB, application/x-zip-compressed)
2013-11-20 04:36 EST, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
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.