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

Bug 347469

Summary: [Accessibility]Using Text with SWT.WRAP on Mac causes a additional scrollbar to appear
Product: [Eclipse Project] Platform Reporter: mukundan desikan <mukund>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: kleind, peina
Version: 3.6.2   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=254476
Whiteboard:
Attachments:
Description Flags
file properties none

Description mukundan desikan CLA 2011-05-27 11:15:34 EDT
Build Identifier: version 362 M20110210-1200

If the SWT Text API is used to create read only label fields, We are seeing some scrollbars towards the end of the text. Happens with SWT 362 and reported seen with SWT 352 as well.

public class LabelWrapBug  {

	public static void main(String[] args) {
         Display display = Display.getDefault();

	        final Shell shell = new Shell(display);
	        shell.setLayout(new GridLayout(1, false));
	        
	        Composite comp = new Composite(shell, SWT.NONE);	        
	        comp.setLayout(new FillLayout());

	        Text label = new Text(shell,  SWT.WRAP);
	        label.setEditable(false);
	        label.setText("Represent a non-selectable use interface object that displays a string ");

	        shell.setSize(300, 300);
	        shell.open();
	        while (!shell.isDisposed()) {
	            if (!display.readAndDispatch())
	                display.sleep();
	        }
	        display.dispose();
        }
}


Reproducible: Always

Steps to Reproduce:
Alternative steps 

1. Change to Japanese locale on your mac. Logout and Login again.
2. Open Eclipse.
3. Right click any java files in your workspace, and select the "Properties" men
Comment 1 mukundan desikan CLA 2011-05-27 11:18:40 EDT
Created attachment 196774 [details]
file properties
Comment 2 mukundan desikan CLA 2011-05-27 11:28:27 EDT
Believe there is already a bug for this issue https://bugs.eclipse.org/bugs/show_bug.cgi?id=254476
Comment 3 mukundan desikan CLA 2011-05-27 11:38:30 EDT
should be closed as duplicate of 254476

*** This bug has been marked as a duplicate of bug 254476 ***