Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362099 - [Forms] Section Client is not rendered properly
Summary: [Forms] Section Client is not rendered properly
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 1.5 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 12:20 EDT by Setya Nugdjaja CLA
Modified: 2011-11-04 05:25 EDT (History)
1 user (show)

See Also:


Attachments
The snippet result in RAP (6.11 KB, image/png)
2011-10-26 12:24 EDT, Setya Nugdjaja CLA
no flags Details
The snippet result in RCP (6.02 KB, image/png)
2011-10-26 12:24 EDT, Setya Nugdjaja CLA
no flags Details
The snippet result in RAP (6.45 KB, image/png)
2011-10-26 12:27 EDT, Setya Nugdjaja CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Setya Nugdjaja CLA 2011-10-26 12:20:40 EDT
Build Identifier: 20110615-0604

The bottom border of Section client is missing

Reproducible: Always

Steps to Reproduce:
Reproduce with the following snippets:

...
@Override
public void createPartControl(Composite parent)
{
parent.setLayout(GridLayoutFactory.fillDefaults().numColumns(2).margins(5, 5).create());
		
createSection(parent, "Section 1");
createSection(parent, "Section 2");
}

private void createSection(Composite parent, String title)
{
Section section = toolkit.createSection(parent, Section.TITLE_BAR | Section.DESCRIPTION);
section.setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
section.setText(title);

section.setClient(toolkit.createComposite(section, SWT.BORDER));
		((Composite)section.getClient()).setLayoutData(GridDataFactory.fillDefaults().grab(true, true).create());
}

The same snippets in RCP works well.

Thanks & Regards,

Setya
Comment 1 Setya Nugdjaja CLA 2011-10-26 12:24:03 EDT
Created attachment 206000 [details]
The snippet result in RAP
Comment 2 Setya Nugdjaja CLA 2011-10-26 12:24:38 EDT
Created attachment 206002 [details]
The snippet result in RCP
Comment 3 Setya Nugdjaja CLA 2011-10-26 12:27:41 EDT
Created attachment 206003 [details]
The snippet result in RAP
Comment 4 Ivan Furnadjiev CLA 2011-10-27 11:03:59 EDT
Reproducible with the attached snippet (CVS HEAD) in both Firefox and IE.
Comment 5 Ivan Furnadjiev CLA 2011-11-04 05:25:34 EDT
When TITLE_BAR style flag is used, a Section 1px rounded border is created ( see Section#applyBackgroundGradient ), but Section#getBorderWidth still returns 0. Fixed by overriding getBorderWidth in Section to respect this 1px border.