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

Bug 346683

Summary: [Theming] Can't update border-radius at runtime
Product: [RT] RAP Reporter: Holger Staudacher <holger.staudacher>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: Andreas.Hoegger, stephan.leichtvogt
Version: 1.4   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Project to reproduce
none
Fix none

Description Holger Staudacher CLA 2011-05-20 10:06:49 EDT
I created a composite and applied the border-radius property via a custom variant. During runtime I changed the custom variant of the composite. The difference between these two variants was the border-radius. Sadly the border-radius was not updated on the client site.

Trying the same with e.g. a background-color works like a charm.

I think this is really a critical issue.
Comment 1 Holger Staudacher CLA 2011-05-23 05:06:00 EDT
Created attachment 196310 [details]
Project to reproduce

I created a small project to reproduce this bug. It's a shell with a label and a button. When pressing the button the custom variant of the label changes. The custom variants have different borders radius and background-color properties. The background will be updated correctly but the border-radius not. I hope this will help.
Comment 2 Ivan Furnadjiev CLA 2011-05-23 08:58:49 EDT
Created attachment 196330 [details]
Fix

The radii property was not reset if rounded border is replaced with simple/complex border. JS tests added.
Comment 3 Ivan Furnadjiev CLA 2011-05-23 09:00:24 EDT
Applied patch to CVS HEAD.