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

Bug 374312

Summary: [Text] MULTI Text nolonger show scrollbars
Product: [RT] RAP Reporter: Chris Fairhall <chris>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: tbuschto
Version: 1.5   
Target Milestone: 1.5 M6   
Hardware: All   
OS: All   
Whiteboard:

Description Chris Fairhall CLA 2012-03-14 16:34:13 EDT
Build Identifier: rap-runtime-1.5.0-N-20120314-0113

V_SCROLL and H_SCROLL styles nolonger have any effect on Text widgets

Reproducible: Always

Steps to Reproduce:
Run this snippet
public class EntryPoint3 implements IEntryPoint {
	@Override
	public int createUI() {
		new Display();

		final Shell shell = new Shell(SWT.SHELL_TRIM);
		shell.setSize(200, 200);
		
		Text text = new Text(shell, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI | SWT.WRAP);
		text.setBounds(50, 50, 100, 105);
		
		shell.setVisible(true);
		
		return 0;
	}
}

Type excess text into the widget and witness the lack of scroll bars appearing
Comment 1 Ivan Furnadjiev CLA 2012-03-15 06:24:10 EDT
Reproducible with Controls Demo -> Text Tab in all browsers, but Firefox. Check MULTI, BORDER, WRAP on the Text tab page. Click on "200x100" button. Start typing. In Firefox vertical scrollbar appear as usual, but not in the other browsers. More over, pressing ENTER in WebKit browsers does not insert new line.
Comment 2 Tim Buschtoens CLA 2012-03-15 06:27:30 EDT
However, its completely unrelated to V_SCROLL and H_SCROLL. They have no effect in 1.4 or 1.5.
Comment 3 Tim Buschtoens CLA 2012-03-15 06:33:24 EDT
This is because overflow on the textarea element is now set to hidden for some reason. Should be easy fix. For the ENTER issue i opend a new Bug 374355.
Comment 4 Tim Buschtoens CLA 2012-03-15 07:07:32 EDT
Fixed in CVS HEAD, BasicText.js.