Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 239178 - [Forms]FormPage header cannot render horizontal gradient
Summary: [Forms]FormPage header cannot render horizontal gradient
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: User Assistance (show other bugs)
Version: 3.4   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.5 M1   Edit
Assignee: Adam Archer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-01 21:31 EDT by Wang Yizhuo CLA
Modified: 2008-07-02 12:20 EDT (History)
2 users (show)

See Also:


Attachments
Patch (810 bytes, patch)
2008-07-01 21:31 EDT, Wang Yizhuo CLA
agarcher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wang Yizhuo CLA 2008-07-01 21:31:33 EDT
Created attachment 106268 [details]
Patch

Build ID: I20080617-2000

Steps To Reproduce:
1.In FormPage class, call setTextBackground(...) method with vertical = false, the header does not show up the gradient


More information:
Cause of this bug is in FormImages, drawTextGradient(..) method. 

line 217
int gradientWidth = percents[i] * height / 100;
should be changed to
int gradientWidth = percents[i] * width / 100;

Attached is the patch.
Comment 1 Adam Archer CLA 2008-07-02 12:19:44 EDT
Nice catch. Patch applied to HEAD.

Thanks Wang!
Comment 2 Adam Archer CLA 2008-07-02 12:20:17 EDT
Closing as FIXED.