Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347469 - [Accessibility]Using Text with SWT.WRAP on Mac causes a additional scrollbar to appear
Summary: [Accessibility]Using Text with SWT.WRAP on Mac causes a additional scrollbar ...
Status: CLOSED DUPLICATE of bug 254476
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 11:15 EDT by mukundan desikan CLA
Modified: 2011-05-27 11:38 EDT (History)
2 users (show)

See Also:


Attachments
file properties (60.94 KB, image/png)
2011-05-27 11:18 EDT, mukundan desikan CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***