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

Bug 406949

Summary: Text.setTopIndex(int) doesn't work until event is received
Product: [Eclipse Project] Platform Reporter: Carolyn MacLeod <carolynmacleod4>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: ericwill
Version: 4.3Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Carolyn MacLeod CLA 2013-04-30 15:05:29 EDT
SWT from HEAD, GTK 2.x, Ubuntu 12.04. Didn't try other Linux.

Run Snippet12. The call to text.setTopIndex(30) does nothing (the control remains scrolled to the bottom).  If you add a keydown listener and call setTopIndex() inside the listener, it works fine. Or run Snippet243, which calls setTopIndex() in a verifytext listener - that works, also.

Snippet12 works fine on both Mac and Windows.
Comment 1 Carolyn MacLeod CLA 2013-04-30 16:59:11 EDT
Saw this on Solaris Sparc also.
Comment 2 Eric Williams CLA 2018-04-13 16:26:03 EDT
I'm not sure I understand...isn't setTopIndex(30) supposed to scroll the widget to the bottom?
Comment 3 Eric Williams CLA 2019-01-08 17:03:40 EST
Going to close this one for now, if a more concrete issue pops up we can fix it then.