Bug 480312 - DocumentRewriteSession scrolls viewport
Summary: DocumentRewriteSession scrolls viewport
Status: REOPENED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.6   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-21 10:28 EDT by Stephan Wahlbrink CLA
Modified: 2022-02-17 08:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Wahlbrink CLA 2015-10-21 10:28:14 EDT
DocumentRewriteSession scrolls the viewport of TextViewers with variable line height.


To reproduce:
  1) Open a Wikitext editor (e.g. Textile).

  2) Scroll the viewport a few lines, a line with different line height should be in the viewport.

  3) "Shift right" some visible lines (select lines and press tab).

     => The viewport scrolls automatically


It seems the problem is, that at the end of the rewrite session in TextViewer$ViewerState.updateViewerport calculates a wrong top pixel because the StyledTextWidget does not take into account the different line heights.
Comment 1 Eclipse Genie CLA 2020-08-02 18:28:26 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 2 Stephan Wahlbrink CLA 2022-02-17 08:47:01 EST
Still present.