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

Bug 281768

Summary: [design] Logo area size should adapt to label width
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: DemoAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Screenshots that show the problem none

Description Ralf Sternberg CLA 2009-06-28 07:51:08 EDT
Replacing the logo in the example design with a bigger one leads to overproportional logo area width.
I think the problem is this line in HeaderBuilder which causes the area to be more than twice as wide as the label.

  fdLogoArea.width = logo.getBounds().width * 2 +70;
Comment 1 Ralf Sternberg CLA 2009-06-28 07:53:06 EDT
Created attachment 140314 [details]
Screenshots that show the problem
Comment 2 Ralf Sternberg CLA 2009-06-29 10:02:56 EDT
> fdLogoArea.width = logo.getBounds().width * 2 +70;

Replaced the above code with logo width * 220 as a workaround.
Comment 3 Holger Staudacher CLA 2009-08-13 04:18:30 EDT
Fixed and comitted to CVS HEAD. The new approach calculates the width from the logo and the wave area which includes the blue wave image. This is more generic than the workaround. Thanks for reporting this issue.