[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug swing/26808] New: DefaultCaret - adjustVisibility called with old l
From: |
thebohemian at gmx dot net |
Subject: |
[Bug swing/26808] New: DefaultCaret - adjustVisibility called with old location |
Date: |
22 Mar 2006 16:59:51 -0000 |
While analysing a different problem I found out that the DefaultCaret's
adjustVisibility method is called with the values of the old location (the
DefaultCaret class is a descendant from Rectangle and uses itself as an
argument).
The problem can be seen when the caret walks through a text like this:
abc
def
When going from behind the c to the location before the d the y value should
increase but it does not.
----
A quick fix can be achieved by swapping the order of operations in
DefaultCaret.moveDot/setDot from:
handleHighlight();/clearHighlight()
adjustVisibility(this);
appear();
to:
handleHighlight();/clearHighlight()
appear();
adjustVisibility(this);
I will check later if this fix is appropriate.
--
Summary: DefaultCaret - adjustVisibility called with old location
Product: classpath
Version: 0.90
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: swing
AssignedTo: thebohemian at gmx dot net
ReportedBy: thebohemian at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26808
- [Bug swing/26808] New: DefaultCaret - adjustVisibility called with old location,
thebohemian at gmx dot net <=