commit | 6e81aaed66307e9b6e37e31d91f2740f53add5b4 | [log] [tgz] |
---|---|---|
author | Eric Williams <ericwill@redhat.com> | Tue Jun 13 15:00:30 2017 -0400 |
committer | Eric Williams <ericwill@redhat.com> | Mon Jul 17 12:37:16 2017 -0400 |
tree | 596a7fdc215c4abab98ecb085dd4ffecb0d22084 | |
parent | 34821480d44d654541f3b283b235bac2b5233a3c [diff] |
Bug 494565: [GTK] Snippet243 doesn't work because Text#insert(String) modifies topIndex Methods that insert or select text should not modify the topIndex of the viewer. To avoid this issue we calculate the visible area, positions of the topIndex, and the insertion/selection points. If the insertion/selection points are outside the visible area, then scroll to them. Otherwise do nothing, which preserves the topIndex. Tested on GTK3.22, 3.20, 3.18, 3.16, 3.14, 3.10, and 2.24. No additional AllNonBrowser JUnit test failures occur. Change-Id: Ib020473a5a31d535fb0b1b84f8b13e087fa16c62 Signed-off-by: Eric Williams <ericwill@redhat.com>
Thanks for your interest in this project.
See the following description for how to contribute a feature or a bug fix to SWT.
Information regarding source code management, builds, coding standards, and more and be found under the following link.
Before your contribution can be accepted by the project, you need to create and electronically sign the Eclipse Foundation Contributor License Agreement (CLA).
Contact the project developers via the project's “dev” list.
This project uses Bugzilla to track ongoing development and issues.
Be sure to search for existing bugs before you create another one. Remember that contributions are always welcome!