Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346683 - [Theming] Can't update border-radius at runtime
Summary: [Theming] Can't update border-radius at runtime
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-20 10:06 EDT by Holger Staudacher CLA
Modified: 2011-05-23 09:00 EDT (History)
2 users (show)

See Also:


Attachments
Project to reproduce (11.32 KB, application/zip)
2011-05-23 05:06 EDT, Holger Staudacher CLA
no flags Details
Fix (4.31 KB, patch)
2011-05-23 08:58 EDT, Ivan Furnadjiev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.