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

Bug 298176

Summary: [design] View titles aren't resized properly when the title is changed
Product: [RT] RAP Reporter: Beyhan Veliev <beyhan.veliev>
Component: WorkbenchAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: beyhan.veliev, mknauer
Version: 1.3   
Target Milestone: 1.3 M5   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch to reproduce the described bug none

Description Beyhan Veliev CLA 2009-12-18 09:05:24 EST
Build Identifier: 

View titles aren't resized properly when the title is changed. If the new title is longer than the old one only a part of the title is visible on the view tab. 

Reproducible: Always

Steps to Reproduce:
1. Create a view with a short title e.g. "test"
2. After the view is created and shown update the title with a longer one.
3. The title tab isn't resized properly.
Comment 1 Ivan Furnadjiev CLA 2009-12-22 03:46:55 EST
I can't reproduce it. Tested on Windows Vista with FF 3.5.6, IE8 and Ubuntu 9.10 with FF 3.5.5 (CVS HEAD). The view tab is resized properly. Here is the snippet that I used:
----------------
public class TestView extends ViewPart {

  public void createPartControl( Composite parent ) {
    Button button = new Button( parent, SWT.PUSH );
    button.setText( "Change part name" );
    button.addSelectionListener( new SelectionAdapter() {
      public void widgetSelected( final SelectionEvent event ) {
        setPartName( "Very very long part name... ");
      }
    } );
  }

  public void setFocus() {
  }
}
--------------
Can you provide more information and snippet to reproduce it?
Comment 2 Beyhan Veliev CLA 2009-12-22 11:19:22 EST
Created attachment 154935 [details]
Patch to reproduce the described bug
Comment 3 Beyhan Veliev CLA 2009-12-22 11:25:11 EST
Steps to reproduce this bug:

1. Apply the provided patch to the RAP examples. Use the examples of 1.3 M4
with the business design. I used FF 3.5.6 on Windows. The patch contributes a new View "Test View" and stacks the "Example" view and the "Test View".
2. After the examples are started, activate the "Test View"
3. Select the "Change part name" button in the "Test View"
4. The title of the "Test View" is changed but not resized properly.
Comment 4 Ivan Furnadjiev CLA 2009-12-22 14:40:06 EST
Fixed in CVS HEAD.