Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343539 - Chart bounds not being updated when chart resized
Summary: Chart bounds not being updated when chart resized
Status: RESOLVED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 2.6.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 3.7.0   Edit
Assignee: Birt-Chart-inbox@eclipse.org CLA
QA Contact: Xiaoying Gu CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-21 10:04 EDT by john mcteague CLA
Modified: 2011-05-26 13:32 EDT (History)
3 users (show)

See Also:


Attachments
Designed in BIRT 2.6.2, note that the <Bounds> is still set to the initial value. (48.60 KB, application/octet-stream)
2011-04-21 10:04 EDT, john mcteague CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description john mcteague CLA 2011-04-21 10:04:10 EDT
Build Identifier: 2.6.2

I am using BIRT 2.6.2 to design a report with charts. When I add a chart, regardless of the size I set in the property editor in terms of inches, the <Bounds> element of the chart definition is set to:

<Bounds>
      <Left>0.0</Left>
      <Top>0.0</Top>
      <Width>212.0</Width>
      <Height>130.0</Height>
</Bounds>

When you resize the chart in the designer it does not change, however when run in the BIRT 2.6.2 runtime it does size correctly.

If I run it in a BIRT 2.6.1 runtime the chart is too small, it uses the <Bounds> sizing, not the width and height set in the property editor.

If I use the 2.6.1 designer, the <Bounds> element changes when I resize the chart.

While I appreciate that I should be using the same runtime to match the designer, something is inconsistent here, is <Bounds> deprecated between 2.6.1 and 2.6.2 or is it a bug that its not being updated.

Reproducible: Always

Steps to Reproduce:
1.Create report in BIRT 2.6.2 designer (eclipse or RCP)
2.Add a chart and resize it. The <Bounds> element of the chart definition will not change
3. Run it in BIRT 2.6.1
Comment 1 john mcteague CLA 2011-04-21 10:04:55 EDT
Created attachment 193826 [details]
Designed in BIRT 2.6.2, note that the <Bounds> is still set to the initial value.
Comment 2 Xiaoying Gu CLA 2011-04-24 23:19:40 EDT
This is expected behavior. Now chart bounds will be updated only in runtime instead of design time, for the sake of model reference to report library.
Comment 3 Yulin Wang CLA 2011-04-24 23:59:31 EDT
To fix bug 321021, chart bounds will not be updated in design time. This change does not lead to any compatibility issues.