Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 362099

Summary: [Forms] Section Client is not rendered properly
Product: [RT] RAP Reporter: Setya Nugdjaja <jsetya>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: unspecified   
Target Milestone: 1.5 M3   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
The snippet result in RAP
none
The snippet result in RCP
none
The snippet result in RAP none

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.