| Summary: | [Button] Background gradient disappears after set and remove background image | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ivan Furnadjiev <ivan> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P2 | CC: | tbuschto | ||||
| Version: | 2.0 | ||||||
| Target Milestone: | 2.1 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ivan Furnadjiev
Created attachment 228983 [details]
Proposed patch
The patch restores the background gradient after the removal of background image. Tim, what do you think? Is the fix ok with you?
I think this should be fixed in _styleBackgroundImage, not _applyBackgroundImage. There should also be a check for CSS3 support (rwt.client.Client.supportsCss3()) to make sure it's not crashing older browser. Otherwise it seems fine, though I could not apply the patch to my workspace for some reason. I'll run the tests in IE8 after it's pushed to master. Fixed as suggested with commit 7ab2cabb82ecbdaca90f91e52745e843361cb232. Works fine in IE8 as well. |