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

Bug 487364

Summary: Font-change in css based on widget-state is not considered when relayouting
Product: [RT] RAP Reporter: Stefan Milchram <stefan.milchram>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
snippet none

Description Stefan Milchram CLA 2016-02-05 12:39:05 EST
Created attachment 259604 [details]
snippet

We want to set the font of labels to bold when they are disabled.
We tried to achive this with the disabled-state in the css.
The font changes to bold when the label gets disabled, as a result the font gets bigger. When we call relayout now nothing happens.
As a workaround we tried do set another custom variant which changes the font to bold and then do the relayout, which worked.
See the snippet attached, it contains a view where you can reproduce the error. Just click button "toogle enabled" and button "relayout".
Comment 1 Ivan Furnadjiev CLA 2016-02-10 04:03:39 EST
Fixed in master with change https://git.eclipse.org/r/#/c/66104/