Bug 563748 - [StyledText] redraw() does not refresh top partial visible line
Summary: [StyledText] redraw() does not refresh top partial visible line
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.15   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-30 07:55 EDT by Paul Pazderski CLA
Modified: 2020-07-05 14:50 EDT (History)
0 users

See Also:


Attachments
Test snippet demonstration (219.31 KB, image/gif)
2020-05-30 07:55 EDT, Paul Pazderski CLA
no flags Details
Test Snippet (2.01 KB, application/octet-stream)
2020-05-30 07:57 EDT, Paul Pazderski CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Pazderski CLA 2020-05-30 07:55:27 EDT
Created attachment 283102 [details]
Test snippet demonstration

In a StyledText using LineStyleListener for styling and calling redraw() does not update the top line if only partial visible.

Find attached a Snippet and gif to demonstrate the issue.

I found this problem initial in Console view which use LineStyleListener and redraw() to notify style changes. If a link is added and happens to be partial visible on the top boarder it will not be updated and is not recognizable as link for the user. Due to layout caching this wrong styling can persist for longer and survive some kinds of scrolling.
Comment 1 Paul Pazderski CLA 2020-05-30 07:57:16 EDT
Created attachment 283103 [details]
Test Snippet
Comment 2 Eclipse Genie CLA 2020-05-30 07:58:40 EDT
New Gerrit change created: https://git.eclipse.org/r/163884