| Summary: | [Forms] Section Client is not rendered properly | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Setya Nugdjaja <jsetya> | ||||||||
| Component: | RWT | Assignee: | 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: |
|
||||||||||
Created attachment 206000 [details]
The snippet result in RAP
Created attachment 206002 [details]
The snippet result in RCP
Created attachment 206003 [details]
The snippet result in RAP
Reproducible with the attached snippet (CVS HEAD) in both Firefox and IE. 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. |
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